LibDriver SSD1309
Loading...
Searching...
No Matches
driver_ssd1309_advance.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_SSD1309_ADVANCE_H
38#define DRIVER_SSD1309_ADVANCE_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define SSD1309_ADVANCE_DEFAULT_DESELECT_LEVEL SSD1309_DESELECT_LEVEL_0P78
55#define SSD1309_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP SSD1309_LEFT_RIGHT_REMAP_DISABLE
56#define SSD1309_ADVANCE_DEFAULT_PIN_CONF SSD1309_PIN_CONF_ALTERNATIVE
57#define SSD1309_ADVANCE_DEFAULT_PHASE1_PERIOD 0x01
58#define SSD1309_ADVANCE_DEFAULT_PHASE2_PERIOD 0x0F
59#define SSD1309_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY 0x08
60#define SSD1309_ADVANCE_DEFAULT_CLOCK_DIVIDE 0x00
61#define SSD1309_ADVANCE_DEFAULT_DISPLAY_OFFSET 0x00
62#define SSD1309_ADVANCE_DEFAULT_MULTIPLEX_RATIO 0x3F
63#define SSD1309_ADVANCE_DEFAULT_DISPLAY_MODE SSD1309_DISPLAY_MODE_NORMAL
64#define SSD1309_ADVANCE_DEFAULT_SCAN_DIRECTION SSD1309_SCAN_DIRECTION_COMN_1_START
65#define SSD1309_ADVANCE_DEFAULT_SEGMENT SSD1309_SEGMENT_COLUMN_ADDRESS_127
66#define SSD1309_ADVANCE_DEFAULT_CONTRAST 0xCF
67#define SSD1309_ADVANCE_DEFAULT_GPIO_CONFIG SSD1309_GPIO_OUTPUT_LOW
68#define SSD1309_ADVANCE_DEFAULT_DISPLAY_START_LINE 0x00
69#define SSD1309_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS 0x00
70#define SSD1309_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS 0x00
71#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START 0x00
72#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END 0x07
73#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START 0x00
74#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END 0x7F
75
86
94uint8_t ssd1309_advance_deinit(void);
95
103uint8_t ssd1309_advance_display_on(void);
104
112uint8_t ssd1309_advance_display_off(void);
113
121uint8_t ssd1309_advance_clear(void);
122
133uint8_t ssd1309_advance_write_point(uint8_t x, uint8_t y, uint8_t data);
134
145uint8_t ssd1309_advance_read_point(uint8_t x, uint8_t y, uint8_t *data);
146
160uint8_t ssd1309_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1309_font_t font);
161
174uint8_t ssd1309_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color);
175
188uint8_t ssd1309_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img);
189
198
217uint8_t ssd1309_advance_vertical_left_horizontal_scroll(ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr,
218 uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames,
219 uint8_t start_column_addr, uint8_t end_column_addr);
220
239uint8_t ssd1309_advance_vertical_right_horizontal_scroll(ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr,
240 uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames,
241 uint8_t start_column_addr, uint8_t end_column_addr);
242
246
247#ifdef __cplusplus
248}
249#endif
250
251#endif
driver ssd1309 interface header file
ssd1309_bool_t
ssd1309 bool enumeration definition
ssd1309_interface_t
ssd1309 interface enumeration definition
ssd1309_address_t
ssd1309 address pin enumeration definition
ssd1309_scroll_frame_t
ssd1309 scroll frame enumeration definition
ssd1309_font_t
ssd1309 font enumeration definition
uint8_t ssd1309_advance_clear(void)
advance example clear
uint8_t ssd1309_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
advance example draw a picture
uint8_t ssd1309_advance_vertical_left_horizontal_scroll(ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames, uint8_t start_column_addr, uint8_t end_column_addr)
advance example enable the left horizontal scroll
uint8_t ssd1309_advance_deinit(void)
advance example deinit
uint8_t ssd1309_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
advance example fill a rectangle
uint8_t ssd1309_advance_read_point(uint8_t x, uint8_t y, uint8_t *data)
advance example read a point
uint8_t ssd1309_advance_init(ssd1309_interface_t interface, ssd1309_address_t addr)
advance example init
uint8_t ssd1309_advance_display_off(void)
advance example display off
uint8_t ssd1309_advance_display_on(void)
advance example display on
uint8_t ssd1309_advance_deactivate_scroll(void)
advance example deactivate the scroll
uint8_t ssd1309_advance_vertical_right_horizontal_scroll(ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames, uint8_t start_column_addr, uint8_t end_column_addr)
advance example enable the right horizontal scroll
uint8_t ssd1309_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1309_font_t font)
advance example draw a string
uint8_t ssd1309_advance_write_point(uint8_t x, uint8_t y, uint8_t data)
advance example write a point