David Smart
/
PUB_RA8875_Min
A minimal sample for the RA8875 display.
main.cpp
- Committer:
- WiredHome
- Date:
- 2016-01-23
- Revision:
- 1:55ebb2423290
- Parent:
- 0:8446f99d40a0
- Child:
- 2:6948590d9b13
File content as of revision 1:55ebb2423290:
#include "mbed.h" // v112 #include "RA8875.h" // v102 RA8875 lcd(p5, p6, p7, p12, NC, "tft"); int main() { lcd.init(); lcd.printf("printing 3 x 2 = %d", 3*2); lcd.circle( 400,25, 25, BrightRed); lcd.fillcircle( 400,25, 15, RGB(128,255,128)); lcd.ellipse( 440,75, 35,20, BrightBlue); lcd.fillellipse( 440,75, 25,10, Blue); lcd.triangle( 440,100, 475,110, 450,125, Magenta); lcd.filltriangle( 445,105, 467,111, 452,120, Cyan); lcd.rect( 400,130, 475,155, Brown); lcd.fillrect( 405,135, 470,150, Pink); lcd.roundrect( 410,160, 475,190, 10,8, Yellow); lcd.fillroundrect(415,165, 470,185, 5,3, Orange); lcd.line( 430,200, 460,230, RGB(0,255,0)); for (int i=0; i<=30; i+=5) lcd.pixel(435+i,200+i, White); }