Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:hah_arduino [2012/05/12 15:39] – [HAH and the Arduino] minerva9 | livebox:hah_arduino [2012/05/12 15:50] – [LED control with a BSC schema] minerva9 | ||
---|---|---|---|
Line 59: | Line 59: | ||
====== Ethernet xAP Arduino Library ====== | ====== Ethernet xAP Arduino Library ====== | ||
- | To aid writing xAP compliant applications for the Arduino an xAP processing library has been written. | + | To aid writing xAP compliant applications for the Arduino, an xAP processing library has been written. |
These are the classes exposed by the library. | These are the classes exposed by the library. | ||
Line 197: | Line 197: | ||
Step 3. Now we will create a Lua [[hah_plugboard_v2|plugboard]] applet and a BSC endpoint so this LED can be easily controlled. | Step 3. Now we will create a Lua [[hah_plugboard_v2|plugboard]] applet and a BSC endpoint so this LED can be easily controlled. | ||
- | Like all Plugboard scripts, this must be placed in the / | + | |
+ | Like all Plugboard scripts, this must be placed in the / | ||
<code lua> | <code lua> | ||
Line 254: | Line 255: | ||
Step 4. Restart the plugboard daemon to make sure the new Applet is loaded. One easy way to do this is to reboot the HAH. | Step 4. Restart the plugboard daemon to make sure the new Applet is loaded. One easy way to do this is to reboot the HAH. | ||
- | Step 5. Send a BSC control message to our endpoint and turn the LED on/off. An easy way to send BSC control messages is to use xFx Viewer. | + | Step 5. Send a BSC control message to our endpoint and turn the LED on/off. An easy way to send BSC control messages |
< | < | ||
xap-header | xap-header | ||
Line 271: | Line 272: | ||
} | } | ||
</ | </ | ||
- | |||
====== Arduino links ====== | ====== Arduino links ====== | ||