void f3d_lcd_setAddrWindow ( uint16_t x0 , uint16_t y0 , uint16_t x1 , uint16_t y1 , uint8_t madctl) { madctl = MADVAL ( madctl ); if ( madctl != madctlcurrent ){ f3d_lcd_writeCmd(ST7735_MADCTL); LcdWrite(LCD_D, &madctl, 1); madctlcurrent = madctl ; } f3d_lcd_writeCmd(ST7735_CASET); LcdWrite16(LCD_D,&x0,1); LcdWrite16(LCD_D,&x1,1); f3d_lcd_writeCmd(ST7735_RASET); LcdWrite16(LCD_D,&y0,1); LcdWrite16(LCD_D,&y1,1); f3d_lcd_writeCmd(ST7735_RAMWR); }
void f3d_lcd_pushColor(uint16_t *color,int cnt) { LcdWrite16(LCD_D,color,cnt); }
void ST7735_pushColor( uint16_t *color, int cnt ) { LcdWrite16( LCD_D, color, cnt ); }