this is kazushi's branch of AD128160
Fork of AD128160 by
Revision 8:5b2cbd7120d3, committed 2013-02-25
- Comitter:
- kazushi2008
- Date:
- Mon Feb 25 03:24:09 2013 +0000
- Parent:
- 7:227b64bf8fb1
- Commit message:
- fork by Kazushi Mukaiyama
Changed in this revision
s_Lcd.cpp | Show annotated file Show diff for this revision Revisions of this file |
s_Lcd.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 227b64bf8fb1 -r 5b2cbd7120d3 s_Lcd.cpp --- a/s_Lcd.cpp Mon Jan 07 04:15:00 2013 +0000 +++ b/s_Lcd.cpp Mon Feb 25 03:24:09 2013 +0000 @@ -137,18 +137,22 @@ device.putc(0xAA); } -void newline(void){ +void newline(int rgb){ cx = 0; cy += 16; if(cy > 160){ scroll(); cy = 0; - color(0x001f); + color(rgb); cls(); color(0xffff); } } +void newline(void){ + newline(0x001f); +} + void movecorsor(int a) { cx+=8*a;
diff -r 227b64bf8fb1 -r 5b2cbd7120d3 s_Lcd.h --- a/s_Lcd.h Mon Jan 07 04:15:00 2013 +0000 +++ b/s_Lcd.h Mon Feb 25 03:24:09 2013 +0000 @@ -3,6 +3,7 @@ void bmp(int x0,int y0,int bmp_n); +void newline(int rgb); void newline(void); void movecorsor(int a); void drawc(unsigned char c);