l0dable
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| l0dable [2011/08/12 19:59] – old revision restored leonard | l0dable [2011/12/30 13:18] (current) – emdete | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | L0dables are small (<2.5k) loadable modules for the r0ket firmware. In the default released firmware these need to be encrypted signed to be run. The default l0dables are | + | ==== l0dable documentation ==== |
| - | * BLINK {{:blink.c0d}} | + | This page documents to how to write a [[l0dable]]. depending on the font you are seeing this looks like "I/O dables" |
| - | * INVADERS {{:invaders.c0d}} | + | |
| - | * MANDEL {{:mandel.c0d}} | + | |
| - | * PWGEN {{: | + | |
| - | * ROCKETS {{: | + | |
| - | * RECVCARD {{: | + | |
| - | * SENDCARD {{: | + | |
| - | l0dables which replace the nickname display have the extension .NIK | + | Set up build environment as described in [[build]] |
| - | * ANIM {{: | + | |
| - | * IMAGE {{: | + | |
| - | * LIFE {{: | + | |
| - | * PLAIN {{: | + | |
| - | * SCR0LL {{: | + | |
| - | After-release l0dables: | + | < |
| + | cd firmware/ | ||
| + | vi hello.c | ||
| + | </ | ||
| - | * SHOWCARD {{: | + | < |
| - | * displays a vcard | + | #include <sysinit.h> |
| - | * VOLTAGE {{:voltage.c0d}} | + | #include <string.h> |
| - | * Check your battery voltage and charging status | + | # |
| - | * SNAKE {{:snake.c0d}} | + | |
| - | | + | |
| - | * MATRIX {{: | + | |
| - | * random characters :) | + | |
| - | * INVADERS {{: | + | |
| - | * invaders-style nickname | + | |
| - | All these modules can be downloaded here and placed on your r0ket via the usb_storage mode. | + | #include " |
| + | #include " | ||
| - | If you write a l0dable, stop by fpletzvillage to get it signed and distributed here. | + | #include " |
| + | #include " | ||
| - | ====LeiwandVille Demo==== | + | #include " |
| - | We are proud to present you the official LeiwandVille Demo App for your batch. | + | void ram(void) |
| + | { | ||
| + | lcdPrintln(" | ||
| + | lcdPrintln(GLOBAL(nickname)); | ||
| + | lcdRefresh(); | ||
| + | while (getInputRaw() != BTN_ENTER); | ||
| + | } | ||
| + | </ | ||
| - | ===signed version=== | + | more examples how to do stuff are in the l0dable directory. |
| - | If you haven' | + | |
| - | ===open source version=== | + | ==== Compiling the l0dable for the r0ket ==== |
| - | Download the files http:// | + | < |
| + | make hello.c0d | ||
| + | </code> | ||
| - | ==== Show *.lcd Files ==== | + | 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 | ||
| - | This l0dable shows you .lcd files (images or animations) stored on your r0ket. | + | < |
| - | It also allows you to choose the animation speed. | + | cp hello.c0d /Volumes/NO\ NAME/ |
| - | (See also [[lcd_art|LCD Art]]) | + | </code> |
| - | * [[http://ikarus4ever.ik.funpic.de/cccamp2011/ | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | (Sorry for the lame hosting... I don't have webspace) | + | |
| - | ==== Unsigned .c files ==== | + | make sure you unmount |
| - | * [[http://the-k3x.de/ | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[https:// | + | |
| - | * Fixed blink.c [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[https:// | + | |
| - | For Nick-Animations, Animations | + | exit usb_storage, and run hello from the execute menu. |
| + | |||
| + | ==== running in the simulat0r ==== | ||
| + | |||
| + | < | ||
| + | cd simulat0r | ||
| + | make APP=l0dable LAPP=hello | ||
| + | gui/ | ||
| + | </ | ||
l0dable.1313171975.txt.gz · Last modified: by leonard
