1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
Ivan Grokhotkov 61cd8d8385 examples: format all .ino files
This formats all the example source files using Arduino style rules.
2018-03-08 14:32:06 +08:00

24 lines
843 B
C++

/* Draw Boxes - Demonstrate drawRectangle and fillRectangle
fillScreen(INT16U XL,INT16U XR,INT16U YU,INT16U YD,INT16U color);
fillRectangle(INT16U poX, INT16U poY, INT16U length, INT16U width, INT16U color);
drawRectangle(INT16U poX, INT16U poY, INT16U length,INT16U width,INT16U color);
*/
#include <stdint.h>
#include <TFTv2.h>
#include <SPI.h>
void setup() {
TFT_BL_ON; // turn on the background light
Tft.TFTinit(); // init TFT library
Tft.fillScreen(80, 160, 50, 150, RED);
Tft.fillRectangle(30, 120, 100, 65, YELLOW);
Tft.drawRectangle(100, 170, 120, 60, BLUE);
}
void loop() {
}
/*********************************************************************************************************
END FILE
*********************************************************************************************************/