Fork of https://os.mbed.com/users/sebastiken/code/Adafruit_RA8875/ ; Adapted for use with K64F and in the process of adding more functions.
Diff: main.cpp
- Revision:
- 2:040a687cea93
- Parent:
- 0:66c1aa3d198e
- Child:
- 3:4a3e169866a2
--- a/main.cpp Fri Sep 08 14:14:54 2017 +0000 +++ b/main.cpp Fri Sep 08 16:30:24 2017 +0000 @@ -48,7 +48,7 @@ tft.textSetCursor(10, 10); /* Render some text! */ - char string[15] = "Hello, World! "; + char string[] = "Hello, Nehuen! "; tft.textTransparent(RA8875_WHITE); tft.textWrite(string); tft.textColor(RA8875_WHITE, RA8875_RED); @@ -63,13 +63,16 @@ tft.textWrite(string); /* Change the cursor location and color ... */ - tft.textSetCursor(100, 100); - tft.textTransparent(RA8875_RED); + //tft.textSetCursor(100, 100); + //tft.textTransparent(RA8875_RED); /* If necessary, enlarge the font */ - tft.textEnlarge(1); + //tft.textEnlarge(1); /* ... and render some more text! */ - tft.textWrite(string); - tft.textSetCursor(100, 150); - tft.textEnlarge(2); - tft.textWrite(string); + //tft.textWrite(string); + //tft.textSetCursor(100, 150); + //tft.textEnlarge(2); + //tft.textWrite(string); + + tft.drawCircle(100, 100, 50, RA8875_RED); + tft.fillCircle(100, 100, 50, RA8875_RED); } \ No newline at end of file