l0dable
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| l0dable [2011/12/30 04:02] – rene-dev | l0dable [2011/12/30 13:18] (current) – emdete | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Set up build environment as described in [[build]] | Set up build environment as described in [[build]] | ||
| + | |||
| < | < | ||
| cd firmware/ | cd firmware/ | ||
| - | vi applications/ | + | vi hello.c |
| </ | </ | ||
| + | |||
| < | < | ||
| #include < | #include < | ||
| Line 20: | Line 22: | ||
| #include " | #include " | ||
| - | + | ||
| - | void ram(void) | + | void ram(void) |
| { | { | ||
| lcdPrintln(" | lcdPrintln(" | ||
| lcdPrintln(GLOBAL(nickname)); | lcdPrintln(GLOBAL(nickname)); | ||
| lcdRefresh(); | lcdRefresh(); | ||
| - | while (1){}; | + | while (getInputRaw() != BTN_ENTER); |
| } | } | ||
| </ | </ | ||
| + | |||
| more examples how to do stuff are in the l0dable directory. | more examples how to do stuff are in the l0dable directory. | ||
| + | |||
| ==== Compiling the l0dable for the r0ket ==== | ==== Compiling the l0dable for the r0ket ==== | ||
| + | |||
| < | < | ||
| make hello.c0d | make hello.c0d | ||
| </ | </ | ||
| + | |||
| Select usb_storage on your r0ket, mount it and copy hello.c0d on the usb device. | Select usb_storage on your r0ket, mount it and copy hello.c0d on the usb device. | ||
| on OS X so not use the finder, use | on OS X so not use the finder, use | ||
| + | |||
| < | < | ||
| cp hello.c0d / | cp hello.c0d / | ||
| </ | </ | ||
| + | |||
| make sure you unmount the device properly. | make sure you unmount the device properly. | ||
| exit usb_storage, | exit usb_storage, | ||
| + | |||
| ==== running in the simulat0r ==== | ==== running in the simulat0r ==== | ||
| + | |||
| < | < | ||
| cd simulat0r | cd simulat0r | ||
| Line 48: | Line 58: | ||
| gui/ | gui/ | ||
| </ | </ | ||
| + | |||
l0dable.1325214123.txt.gz · Last modified: by rene-dev
