better drawing, landscape
parent
f90c71412c
commit
b0cd81cf66
@ -0,0 +1,9 @@
|
||||
#ifndef DISPLAY_DRAW_H_
|
||||
#define DISPLAY_DRAW_H_
|
||||
|
||||
void dsp_rect(int x, int y, int w, int h, uint16_t color);
|
||||
|
||||
void dsp_cpos(int x, int y);
|
||||
void dsp_puts(const char *s);
|
||||
|
||||
#endif // DISPLAY_DRAW_H_
|
@ -1,10 +1,23 @@
|
||||
func div9
|
||||
if ((arg0 % 9) == 0)
|
||||
ret 1
|
||||
end
|
||||
ret 0
|
||||
end
|
||||
|
||||
set a 0
|
||||
set b 0
|
||||
do
|
||||
set a (a + 1)
|
||||
div9 a > b
|
||||
if (b)
|
||||
print a
|
||||
print ", "
|
||||
end
|
||||
delay 1
|
||||
while (a < 100)
|
||||
|
||||
if (a == 100)
|
||||
print "All good!"
|
||||
print " All good!"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue