l0dable
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| l0dable [2011/12/29 23:49] – [Unsigned .c files] 0xtob | l0dable [2011/12/30 13:18] (current) – emdete | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | L0dables are small (<2.5k) loadable modules for the r0ket firmware. < | + | ==== 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 {{: | + | <code> |
| - | * displays a vcard | + | #include <sysinit.h> |
| - | * VOLTAGE {{: | + | #include <string.h> |
| - | * Check your battery voltage and charging status | + | #include <stdlib.h> |
| - | * SNAKE {{: | + | |
| - | * <some witty comment> | + | |
| - | * MATRIX {{:matrix.nik}} | + | |
| - | * random characters :) | + | |
| - | * INVADERS {{:invaders.nik}} | + | |
| - | * invaders-style nickname | + | |
| - | * JUMP {{: | + | |
| - | * a Doodle Jump clone | + | |
| - | * SCOPE {{: | + | |
| - | * Oscilliscope which reads from the hackbus ports. Put your fingers on and see your electric field. | + | |
| - | 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 at our table to get it integrated into the repository. As no signatures are needed any more, you can also simply put c/c0d file for download here or on your own server and link to it! Happy c0ding! | + | #include " |
| + | #include "lcd/print.h" | ||
| - | ====Fahrplan==== | + | #include " |
| - | 28C3 Schedule on your r0ket. This l0dable is pre-installed in the 28C3 firmwares, but as the Fahrplan changes quite often updates are offered here. You need to have a current firmware though, so if you haven' | + | void ram(void) |
| + | { | ||
| + | lcdPrintln(" | ||
| + | lcdPrintln(GLOBAL(nickname)); | ||
| + | lcdRefresh(); | ||
| + | while (getInputRaw() != BTN_ENTER); | ||
| + | } | ||
| + | </ | ||
| - | Newest version: http://y.nu/ | + | more examples how to do stuff are in the l0dable directory. |
| - | The Archive contains 4 files, | + | ==== Compiling |
| - | Simply unzip the archive, boot your r0ket while moving joystick down (to battery connector, not press), mount the USB volume and copy fahrplan.c0d and fahrplan.scd to it. For big or mini version simply copy it like cp fp-big.scd / | ||
| - | |||
| - | Using the Fahrplan: I hope it's quite self explaining, start the l0dable and after an init screen you are in the schedule, like: | ||
| < | < | ||
| - | D1 1400+0100 2 | + | make hello.c0d |
| - | Hacking | + | </ |
| - | r0ket++ | + | 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 | ||
| - | By: lilafisch, | + | < |
| - | Stefan ' | + | cp hello.c0d / |
| </ | </ | ||
| - | First line shows Day (D1 to D4) starttime+duration and the room, second line the Track and language (na for not available). Then Title and description follow. | ||
| - | To navigate through the schedule press right or left for next and previous talk, they are sorted by Day, Time, Room so you will see them in the order like they happen and move forward through it as congress progresses. When you leave the fahrplan by pressing the joystick it remembers your last position. Up/Down simply scroll through the description, | + | make sure you unmount |
| - | Hint: if you use the fahrplan often and find it too deep down the list, mount the volume, delete fahrplan.c0d | + | exit usb_storage, and run hello from the execute menu. |
| - | ====LeiwandVille Demo==== | + | ==== running in the simulat0r |
| - | We are proud to present you the official LeiwandVille Demo App for your batch. | + | <code> |
| - | + | cd simulat0r | |
| - | ===signed version=== | + | make APP=l0dable LAPP=hello |
| - | If you haven' | + | gui/build/qsimulat0r |
| - | + | </code> | |
| - | ===open source version=== | + | |
| - | + | ||
| - | Download the files http:// | + | |
| - | + | ||
| - | ==== Show *.lcd Files ==== | + | |
| - | + | ||
| - | This l0dable shows you .lcd files (images or animations) stored on your r0ket. | + | |
| - | It also allows you to choose the animation speed. | + | |
| - | (See also [[lcd_art|LCD Art]]) | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | (Sorry for the lame hosting... I don't have webspace) | + | |
| - | ==== Unsigned .c files ==== | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[https:// | ||
| - | * Fixed blink.c [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | For Nick-Animations, | ||
l0dable.1325198997.txt.gz · Last modified: by 0xtob
