Hello world C++ example:

mkdir ~/helloplus
cd ~/helloplus
nano helloplus.cpp
// 'Hello World!' program
#include <iostream>
int main()
{
  std::cout << "Hello World!" << std::endl;
  return 0;
}
mips-openwrt-linux-uclibc-g++  helloplus.cpp -o helloplus
mips-openwrt-linux-uclibc-strip helloplus
scp helloplus [email protected]:/mnt/sda1

Arduino Yun:

opkg update
opkg install libstdcpp
root@Arduino:/# /mnt/sda1/helloplus
Hello world!

Write comment (0 Comments)

Arduino-webpanel has 2 sections:

  • basic configuration panel base on luci-app-arduino-webpanel ( green color)
  • advanced configuration panel (luci), luci-lib-core, luci-lib-web... ( grey color)

to changes basic configuration panel, please edit htm file at /usr/lib/lua/luci/view/arduino/

nano /usr/lib/lua/luci/view/arduino/homepage.htm

Change "Your" to "Sonnyyu's"

WELCOME TO ARDUINO, YOUR ARDUINO YÚN

WELCOME TO ARDUINO, SONNYYU'S ARDUINO YÚN

It is Model-view-controller model. Source code is here: https://github.com/arduino/YunWebUI

To change advanced configuration panel http://luci.subsignal.org/trac/wiki/Documentation/ModulesHowTo.

Write comment (0 Comments)

nano /etc/rc.local
# Uncomment the following line in order to reset the microntroller
# right after linux becomes ready
#reset-mcu

Write comment (0 Comments)

Subcategories

Expand the Storage at Yun

Languages Supported by Yun

Backup and Recover

Network and Yun

Hardware & Yun

OpenWrt-SDK & Yun