| Electronic Components Datasheet Search |
|
DFR0649 Datasheet(PDF) 10 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0649 Datasheet(HTML) 10 Page - DFROBOT |
|
10 / 28 page ![]() } /* Test to draw a line*/ void testLine(){ // 0x00FF is the color data in the format of RGB565 uint16_t color = 0x00FF; screen.fillScreen(COLOR_RGB565_BLACK); for (int16_t x=0; x < screen.width(); x+=6) { /* * @ brief draw a line * @ param x0 The x-coordinate of the first vertex * y0 The y-coordinate of the first vertex * x1 The x-coordinate of the second vertex * y1 The y-coordinate of the second vertex * c line color */ screen.drawLine(/*x0=*/screen.width()/*Screen width*//2, /*y0=*/screen.height()/*Screen height*//2, /*x1=*/x, /*y1=*/0, /*c=*/colo } for (int16_t y=0; y < screen.height(); y+=6) { screen.drawLine(screen.width()/2, screen.height()/2, screen.width(), y, color+=0x0700); } for (int16_t x = screen.width(); x >= 0; x-=6) { screen.drawLine(screen.width()/2, screen.height()/2, x,screen.height(), color+=0x0700); } for (int16_t y = screen.height(); y >= 0; y-=6) { screen.drawLine(screen.width()/2, screen.height()/2, 0, y, color+=0x0700); } } /* Test to fast draw line(need to set delay), only horizontal line and vertical line */ void testFastLines(uint16_t color1, uint16_t color2) { for (int16_t y=0; y < screen.height(); y+=4) { /* * @ brief draw a line * @ param x The x-coordinate of the first vertex * Th di t f th fi t t |
|
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 |