![](/media/cache/group/ON-Semiconductor.jpg.50x50_q85.jpg)
mbed example application for the Adafruit ST7735 TFT Shield, which implements SPI connections to the TFT shield and SD card, as well as an ADC to read from the analog in pins.
Dependencies: Adafruit_GFX Adafruit_ST7735 SDFileSystem mbed-os
Fork of mbed-TFT-example-NCS36510 by
main.cpp
- Committer:
- jacobjohnson
- Date:
- 2017-01-25
- Revision:
- 0:8fbbced097c5
- Child:
- 2:fa3fb1787cf8
File content as of revision 0:8fbbced097c5:
#include "mbed.h" #include "SeeedGrayOLED.h" DigitalOut led1(LED1); SeeedGrayOLED SeeedGrayOled(I2C1_SDATA_1, I2C1_SCLK_1); int main() { SeeedGrayOled.init(); SeeedGrayOled.clearDisplay(); SeeedGrayOled.setNormalDisplay(); SeeedGrayOled.setVerticalMode(); while (true) { for(char i=1; i<11; i++) { led1 = !led1; SeeedGrayOled.setTextXY(i,1); //1st row, 0th column SeeedGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15. SeeedGrayOled.putString("Hello World"); Thread::wait(10); } Thread::wait(5000); } }