| Electronic Components Datasheet Search |
|
DFR0649 Datasheet(PDF) 20 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0649 Datasheet(HTML) 20 Page - DFROBOT |
|
20 / 28 page ![]() /** * @brief Constructor Constructor of hardware SPI communication * @param dc Command/data line pin for SPI communication * @param cs Chip select pin for SPI communication * @param rst Reset pin of the screen */ DFRobot_ST7789_240x240_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ST7789_240x320_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ILI9341_240x320_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ILI9488_320x480_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); /* M0 mainboard DMA transfer */ //DFRobot_ST7789_240x240_DMA_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ST7789_240x320_DMA_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ILI9341_240x320_DMA_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); //DFRobot_ILI9488_320x480_DMA_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST); void setup() { Serial.begin(115200); screen.begin(); } void loop() { int w = screen.width(); int h = screen.height(); int a = millis()/1000;//Get Time //0x00FF is color data in the format RGB565 uint16_t color = 0x00FF; screen.fillScreen(COLOR_RGB565_WHITE); while(1) { for(int i = 0;i < 12; i++){ //Display time with font, program execution time in second screen.fillRect(16,16,w-16*2,35, COLOR_RGB565_WHITE); screen.setTextWrap(false); //0 30FF i th l d t i th f t f RGB565 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |