40static uint8_t gs_lut[153] = {
41 0x80, 0x48, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
42 0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
43 0x80, 0x48, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
44 0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
45 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
46 0xA, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
47 0x8, 0x1, 0x0, 0x8, 0x1, 0x0, 0x2,
48 0xA, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
49 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
50 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
51 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
52 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
53 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
54 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
55 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
56 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
57 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
58 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0, 0x0, 0x0,
driver ssd1681 basic header file
uint8_t ssd1681_deinit(ssd1681_handle_t *handle)
close the chip
uint8_t ssd1681_set_display_sequence(ssd1681_handle_t *handle, ssd1681_display_sequence_t sequence)
set the display sequence
uint8_t ssd1681_init(ssd1681_handle_t *handle)
initialize the chip
uint8_t ssd1681_set_ram_y_address_counter(ssd1681_handle_t *handle, uint16_t cnt)
set the ram y address counter
struct ssd1681_handle_s ssd1681_handle_t
ssd1681 handle structure definition
uint8_t ssd1681_set_lut_register(ssd1681_handle_t *handle, uint8_t *reg, uint16_t len)
set the lut register
uint8_t ssd1681_set_vcom_sense_duration(ssd1681_handle_t *handle, uint8_t duration)
set the vcom sense duration
uint8_t ssd1681_set_vcom_control_reg(ssd1681_handle_t *handle)
write register for vcom control
ssd1681_color_t
ssd1681 color enumeration definition
uint8_t ssd1681_set_driver_output(ssd1681_handle_t *handle, uint16_t mux, ssd1681_bool_t gd, ssd1681_bool_t sm, ssd1681_bool_t tb)
set the driver output
uint8_t ssd1681_gram_draw_picture(ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
draw a picture in the gram
uint8_t ssd1681_gram_write_string(ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t data, ssd1681_font_t font)
draw a string in the gram
uint8_t ssd1681_gram_clear(ssd1681_handle_t *handle, ssd1681_color_t color)
clear the screen in the gram
uint8_t ssd1681_gram_fill_rect(ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t data)
fill a rectangle in the gram
uint8_t ssd1681_set_display_update_control(ssd1681_handle_t *handle, ssd1681_display_control_t red_control, ssd1681_display_control_t black_control)
set the display update control
uint8_t ssd1681_gram_read_point(ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t *data)
read a point from the gram
uint8_t ssd1681_set_end_option(ssd1681_handle_t *handle, ssd1681_end_opt_t opt)
end option
uint8_t ssd1681_set_ram_y(ssd1681_handle_t *handle, uint16_t start, uint16_t end)
set the ram y range
uint8_t ssd1681_software_reset(ssd1681_handle_t *handle)
software reset
ssd1681_font_t
ssd1681 font enumeration definition
uint8_t ssd1681_set_mode(ssd1681_handle_t *handle, ssd1681_mode_t mode)
set the mode
uint8_t ssd1681_set_gate_driving_voltage(ssd1681_handle_t *handle, ssd1681_gate_driving_voltage_t voltage)
set the gate driving voltage
uint8_t ssd1681_set_hv_ready_detection(ssd1681_handle_t *handle, uint8_t cool_down_duration, uint8_t cool_down_loop_num)
set the hv ready detection
uint8_t ssd1681_set_ram_x_address_counter(ssd1681_handle_t *handle, uint8_t cnt)
set the ram x address counter
uint8_t ssd1681_set_auto_write_black_ram(ssd1681_handle_t *handle, ssd1681_step_height_t height, ssd1681_step_width_t width)
set the auto write black ram
uint8_t ssd1681_set_auto_write_red_ram(ssd1681_handle_t *handle, ssd1681_step_height_t height, ssd1681_step_width_t width)
set the auto write red ram
uint8_t ssd1681_gram_write_point(ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t data)
write a point in the gram
uint8_t ssd1681_set_enter_vcom_sense(ssd1681_handle_t *handle)
set enter vcom sense
uint8_t ssd1681_set_booster_soft_start(ssd1681_handle_t *handle, uint8_t phase1, uint8_t phase2, uint8_t phase3, uint8_t duration)
set the booster soft start
uint8_t ssd1681_set_source_driving_voltage(ssd1681_handle_t *handle, ssd1681_vsh_t vsh1, ssd1681_vsh_t vsh2, ssd1681_vsl_t vsl)
set the source driving voltage
uint8_t ssd1681_set_temperature_sensor(ssd1681_handle_t *handle, ssd1681_temperature_sensor_t sensor)
set the temperature sensor
uint8_t ssd1681_set_vcom_register(ssd1681_handle_t *handle, ssd1681_vcom_t vcom)
write vcom register
uint8_t ssd1681_set_data_entry_mode(ssd1681_handle_t *handle, ssd1681_address_mode_t mode, ssd1681_address_direction_t direction)
set the data entry mode
uint8_t ssd1681_clear(ssd1681_handle_t *handle, ssd1681_color_t color)
clear the screen
uint8_t ssd1681_set_ram_x(ssd1681_handle_t *handle, uint8_t start, uint8_t end)
set the ram x range
uint8_t ssd1681_set_border_waveform(ssd1681_handle_t *handle, ssd1681_vbd_t vbd, ssd1681_vbd_fix_level_t level, ssd1681_gs_transition_t gs_tran, ssd1681_vbd_transition_t vbd_tran)
set the border waveform
uint8_t ssd1681_set_vci_detection(ssd1681_handle_t *handle, ssd1681_vci_level_t level)
set the vci detection
uint8_t ssd1681_gram_update(ssd1681_handle_t *handle, ssd1681_color_t color)
update the gram data
@ SSD1681_VCOM_NEGATIVE_0P8
#define SSD1681_BASIC_DEFAULT_RAM_X_END
#define SSD1681_BASIC_DEFAULT_DRIVER_OUTPUT_SM
#define SSD1681_BASIC_DEFAULT_DISPLAY_SEQUENCE
#define SSD1681_BASIC_DEFAULT_COOL_DOWN_LOOP_NUM
#define SSD1681_BASIC_DEFAULT_VSH1
#define SSD1681_BASIC_DEFAULT_VCI
#define SSD1681_BASIC_DEFAULT_DRIVER_OUTPUT_GD
#define SSD1681_BASIC_DEFAULT_VBD_FIX_LEVEL
#define SSD1681_BASIC_DEFAULT_RAM_Y_END
#define SSD1681_BASIC_DEFAULT_GATE_DRIVING_VOLTAGE
#define SSD1681_BASIC_DEFAULT_VBD_TRANSITION
uint8_t ssd1681_basic_read_point(ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t *data)
basic example read a point
#define SSD1681_BASIC_DEFAULT_DURATION
uint8_t ssd1681_basic_rect(ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t data)
basic example fill a rectangle
#define SSD1681_BASIC_DEFAULT_AUTO_BLACK_STEP_HEIGHT
#define SSD1681_BASIC_DEFAULT_AUTO_RED_STEP_HEIGHT
uint8_t ssd1681_basic_init(void)
basic example init
#define SSD1681_BASIC_DEFAULT_VSH2
#define SSD1681_BASIC_DEFAULT_MODE
#define SSD1681_BASIC_DEFAULT_DISPLAY_CONTROL_BLACK
uint8_t ssd1681_basic_picture(ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
basic example draw a picture
#define SSD1681_BASIC_DEFAULT_VCOM_SENSE_DURATION
#define SSD1681_BASIC_DEFAULT_DRIVER_OUTPUT_TB
#define SSD1681_BASIC_DEFAULT_END_OPT
uint8_t ssd1681_basic_write_point(ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t data)
basic example write a point
#define SSD1681_BASIC_DEFAULT_GS_TRANSITION
#define SSD1681_BASIC_DEFAULT_DISPLAY_CONTROL_RED
uint8_t ssd1681_basic_deinit(void)
basic example deinit
#define SSD1681_BASIC_DEFAULT_RAM_X_START
#define SSD1681_BASIC_DEFAULT_RAM_X_ADDRESS_COUNTER
uint8_t ssd1681_basic_string(ssd1681_color_t color, uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t data, ssd1681_font_t font)
basic example draw a string
#define SSD1681_BASIC_DEFAULT_COOL_DOWN_DURATION
#define SSD1681_BASIC_DEFAULT_PHASE3
#define SSD1681_BASIC_DEFAULT_PHASE2
#define SSD1681_BASIC_DEFAULT_VSL
#define SSD1681_BASIC_DEFAULT_ADDRESS_MODE
#define SSD1681_BASIC_DEFAULT_PHASE1
uint8_t ssd1681_basic_clear(ssd1681_color_t color)
basic example clear
#define SSD1681_BASIC_DEFAULT_RAM_Y_ADDRESS_COUNTER
#define SSD1681_BASIC_DEFAULT_RAM_Y_START
#define SSD1681_BASIC_DEFAULT_DRIVER_OUTPUT_MUX
ssd1681 basic example default definition
#define SSD1681_BASIC_DEFAULT_VBD
#define SSD1681_BASIC_DEFAULT_AUTO_RED_STEP_WIDTH
#define SSD1681_BASIC_DEFAULT_AUTO_BLACK_STEP_WIDTH
#define SSD1681_BASIC_DEFAULT_ADDRESS_DIRECTION
#define SSD1681_BASIC_DEFAULT_TEMPERATURE_SENSOR
uint8_t ssd1681_interface_spi_cmd_data_gpio_write(uint8_t value)
interface command && data gpio write
uint8_t ssd1681_interface_spi_cmd_data_gpio_deinit(void)
interface command && data gpio deinit
uint8_t ssd1681_interface_spi_deinit(void)
interface spi bus deinit
uint8_t ssd1681_interface_reset_gpio_deinit(void)
interface reset gpio deinit
uint8_t ssd1681_interface_reset_gpio_init(void)
interface reset gpio init
uint8_t ssd1681_interface_spi_init(void)
interface spi bus init
uint8_t ssd1681_interface_spi_write_cmd(uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t ssd1681_interface_spi_cmd_data_gpio_init(void)
interface command && data gpio init
uint8_t ssd1681_interface_reset_gpio_write(uint8_t value)
interface reset gpio write
void ssd1681_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t ssd1681_interface_busy_gpio_read(uint8_t *value)
interface busy gpio read
void ssd1681_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t ssd1681_interface_spi_read_cmd(uint8_t *buf, uint16_t len)
interface spi bus read
uint8_t ssd1681_interface_busy_gpio_init(void)
interface busy gpio init
uint8_t ssd1681_interface_busy_gpio_deinit(void)
interface busy gpio deinit
#define DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_WRITE(HANDLE, FUC)
link spi_cmd_data_gpio_write function
#define DRIVER_SSD1681_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SSD1681_LINK_RESET_GPIO_INIT(HANDLE, FUC)
link reset_gpio_init function
#define DRIVER_SSD1681_LINK_RESET_GPIO_DEINIT(HANDLE, FUC)
link reset_gpio_deinit function
#define DRIVER_SSD1681_LINK_RESET_GPIO_WRITE(HANDLE, FUC)
link reset_gpio_write function
#define DRIVER_SSD1681_LINK_SPI_READ_CMD(HANDLE, FUC)
link spi_read_cmd function
#define DRIVER_SSD1681_LINK_BUSY_GPIO_INIT(HANDLE, FUC)
link busy_gpio_init function
#define DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_DEINIT(HANDLE, FUC)
link spi_cmd_data_gpio_deinit function
#define DRIVER_SSD1681_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_SSD1681_LINK_BUSY_GPIO_DEINIT(HANDLE, FUC)
link busy_gpio_deinit function
#define DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_INIT(HANDLE, FUC)
link spi_cmd_data_gpio_init function
#define DRIVER_SSD1681_LINK_SPI_WRITE_CMD(HANDLE, FUC)
link spi_write_cmd function
#define DRIVER_SSD1681_LINK_INIT(HANDLE, STRUCTURE)
initialize ssd1681_handle_t structure
#define DRIVER_SSD1681_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_SSD1681_LINK_BUSY_GPIO_READ(HANDLE, FUC)
link busy_gpio_read function
#define DRIVER_SSD1681_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function