SOme displays needs to adjust CS_post for speed

This commit is contained in:
Philippe G
2022-01-05 11:58:47 -08:00
parent 28ac503ef7
commit fb24168d99
3 changed files with 10 additions and 6 deletions

View File

@@ -86,7 +86,6 @@ struct GDS_Device {
struct {
spi_device_handle_t SPIHandle;
int8_t CSPin;
int8_t CS_pre, CS_post, SPI_mode;
};
};
@@ -125,6 +124,8 @@ struct GDS_Device {
// may provide for optimization
void (*DrawRGB)( struct GDS_Device* Device, uint8_t *Image,int x, int y, int Width, int Height, int RGB_Mode );
void (*ClearWindow)( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color );
// may provide for tweaking
void (*SPIParams)(int Speed, uint8_t *mode, uint8_t *CS_pre, uint8_t *CS_post);
// interface-specific methods
WriteCommandProc WriteCommand;