Forked para SNOCC
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 20:6e2e4a8372eb
- Parent:
- 19:3f82c1161fd2
- Child:
- 21:3c1efb192927
diff -r 3f82c1161fd2 -r 6e2e4a8372eb RA8875.cpp --- a/RA8875.cpp Sun Jan 12 17:40:32 2014 +0000 +++ b/RA8875.cpp Sun Jan 12 18:44:58 2014 +0000 @@ -7,6 +7,11 @@ /// #include "RA8875.h" +DigitalOut zz1(LED1); +DigitalOut zz2(LED2); +DigitalOut zz3(LED3); +DigitalOut zz4(LED4); + //#define DEBUG "RAIO" // ... // INFO("Stuff to show %d", var); // new-line is automatically appended @@ -508,15 +513,21 @@ RetCode_t RA8875::triangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int x3, unsigned int y3, color_t color, fill_t fillit) { + RetCode_t ret; + foreground(color); - return triangle(x1,y1,x2,y2,x3,y3,color,fillit); + ret = triangle(x1,y1,x2,y2,x3,y3,fillit); + return ret; } RetCode_t RA8875::filltriangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int x3, unsigned int y3, color_t color, fill_t fillit) { + RetCode_t ret; + foreground(color); - return triangle(x1,y1,x2,y2,x3,y3,color,fillit); + ret = triangle(x1,y1,x2,y2,x3,y3,fillit); + return ret; } RetCode_t RA8875::triangle(unsigned int x1, unsigned int y1 ,unsigned int x2, unsigned int y2,