Skip to content

Commit

Permalink
Fixed display
Browse files Browse the repository at this point in the history
  • Loading branch information
hnzlmnn committed Jun 5, 2024
1 parent 7e293e5 commit 5a096dc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 314 deletions.
2 changes: 1 addition & 1 deletion components/keyboard
Submodule keyboard updated 1 files
+2 −2 include/keyboard.h
11 changes: 0 additions & 11 deletions components/spi-st77xx/include/st77xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ typedef struct ST77XX {
ST77XX_cb_t callback;
// Internal state
spi_device_handle_t spi_device;
bool dc_level;
// Mutex
SemaphoreHandle_t mutex;
SemaphoreHandle_t spi_semaphore;
Expand All @@ -149,21 +148,11 @@ typedef struct ST77XX {
esp_err_t st77xx_init(ST77XX* device);
esp_err_t st77xx_deinit(ST77XX* device);

esp_err_t st77xx_set_sleep(ST77XX* device, const bool state);
esp_err_t st77xx_set_display(ST77XX* device, const bool state);
esp_err_t st77xx_set_invert(ST77XX* device, const bool state);
esp_err_t st77xx_set_partial_scanning(ST77XX* device, const uint16_t start, const uint16_t end);
esp_err_t st77xx_set_tearing_effect_line(ST77XX* device, const bool state);
esp_err_t st77xx_set_idle_mode(ST77XX* device, const bool state);
esp_err_t st77xx_set_cfg(ST77XX* device, uint8_t rotation, bool color_mode);

esp_err_t st77xx_write(ST77XX* device, const uint8_t *data);
esp_err_t st77xx_write_partial_direct(ST77XX* device, const uint8_t *buffer, uint16_t x, uint16_t y, uint16_t width, uint16_t height);
esp_err_t st77xx_write_partial(ST77XX* device, const uint8_t *buffer, uint16_t x, uint16_t y, uint16_t width, uint16_t height);

esp_err_t st77xx_select(ST77XX* device, const bool mode);

esp_err_t st77xx_power_en(ST77XX* device);

#ifdef __cplusplus
}
Expand Down
Loading

0 comments on commit 5a096dc

Please sign in to comment.