User Tools

Site Tools


l0dable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
l0dable [2011/12/30 03:33]
rene-dev
l0dable [2011/12/30 13:18]
emdete
Line 4: Line 4:
  
 Set up build environment as described in [[build]] Set up build environment as described in [[build]]
 +
 <​code>​ <​code>​
 cd firmware/​l0dable/​ cd firmware/​l0dable/​
-vi applications/​hello.c+vi hello.c
 </​code>​ </​code>​
 +
 <​code>​ <​code>​
 #include <​sysinit.h>​ #include <​sysinit.h>​
 +#include <​string.h>​
 +#include <​stdlib.h>​
 +
 #include "​basic/​basic.h"​ #include "​basic/​basic.h"​
 +#include "​basic/​config.h"​
 +
 #include "​lcd/​render.h"​ #include "​lcd/​render.h"​
-void main_hello(void) { +#include "​lcd/​print.h"​ 
-    ​DoString(10,20,"​Hello ​World"); + 
-    ​lcdDisplay(); +#include "​usetable.h"​ 
-    while (1{}+ 
 +void ram(void) 
 +
 +  ​lcdPrintln("​Hello"​);​ 
 +  ​lcdPrintln(GLOBAL(nickname)); 
 +  ​lcdRefresh();​ 
 +  ​while (getInputRaw(!= BTN_ENTER);
 } }
 </​code>​ </​code>​
 +
 +more examples how to do stuff are in the l0dable directory.
 +
 +==== Compiling the l0dable for the r0ket ====
 +
 <​code>​ <​code>​
-== Compiling the l0dable for the r0ket == 
 make hello.c0d make hello.c0d
 </​code>​ </​code>​
-Select usb_storage on your r0ket, and copy hello.c0d on the usb device. + 
-== running in the simulat0r ==+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 
 + 
 +<​code>​ 
 +cp hello.c0d /​Volumes/​NO\ NAME/ 
 +</​code>​ 
 + 
 +make sure you unmount the device properly. 
 + 
 +exit usb_storage,​ and run hello from the execute menu. 
 + 
 +==== running in the simulat0r ==== 
 <​code>​ <​code>​
 cd simulat0r cd simulat0r
Line 29: Line 58:
 gui/​build/​qsimulat0r gui/​build/​qsimulat0r
 </​code>​ </​code>​
 +
l0dable.txt · Last modified: 2011/12/30 13:18 by emdete