Exemple #1
0
void fillScreen(uint16_t color){
  uint8_t x,y;
  ST7735_setAddrWindow(0, 0, ST7735_width-1, ST7735_height-1, MADCTLGRAPHICS);
  for(x=0; x<ST7735_width; x++){
    for(y=0; y<ST7735_height; y++){
      ST7735_pushColor(&color, 1);
    }
  }
}
void fillScreen( uint16_t color ) {

  uint8_t x,y;
  ST7735_setAddrWindow(0, 0, ST7735_HEIGHT-1, ST7735_WIDTH-1, MADCTLGRAPHICS);
  for (x=0; x < ST7735_WIDTH; x++) {
      for (y=0; y < ST7735_HEIGHT; y++) {
	  ST7735_pushColor(&color,1);
      }
  }
}