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 00:05] – emdete | l0dable [2011/12/30 13:18] (current) – emdete | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== l0dable documentation ==== | ==== l0dable documentation ==== | ||
| - | This page is intended | + | This page documents |
| + | Set up build environment as described in [[build]] | ||
| + | |||
| + | < | ||
| + | cd firmware/ | ||
| + | vi hello.c | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | #include " | ||
| + | #include " | ||
| + | |||
| + | #include " | ||
| + | #include " | ||
| + | |||
| + | #include " | ||
| + | |||
| + | void ram(void) | ||
| + | { | ||
| + | lcdPrintln(" | ||
| + | lcdPrintln(GLOBAL(nickname)); | ||
| + | lcdRefresh(); | ||
| + | while (getInputRaw() != BTN_ENTER); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | more examples how to do stuff are in the l0dable directory. | ||
| + | |||
| + | ==== Compiling the l0dable for the r0ket ==== | ||
| + | |||
| + | < | ||
| + | make hello.c0d | ||
| + | </ | ||
| + | |||
| + | 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 | ||
| + | |||
| + | < | ||
| + | cp hello.c0d / | ||
| + | </ | ||
| + | |||
| + | make sure you unmount the device properly. | ||
| + | |||
| + | exit usb_storage, | ||
| + | |||
| + | ==== running in the simulat0r ==== | ||
| + | |||
| + | < | ||
| + | cd simulat0r | ||
| + | make APP=l0dable LAPP=hello | ||
| + | gui/ | ||
| + | </ | ||
l0dable.1325199904.txt.gz · Last modified: by emdete
