LibDriver SSD1306
Loading...
Searching...
No Matches
driver_ssd1306_advance.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_SSD1306_ADVANCE_H
39#define DRIVER_SSD1306_ADVANCE_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
55#define SSD1306_ADVANCE_DEFAULT_DESELECT_LEVEL SSD1306_DESELECT_LEVEL_0P77
56#define SSD1306_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP SSD1306_LEFT_RIGHT_REMAP_DISABLE
57#define SSD1306_ADVANCE_DEFAULT_PIN_CONF SSD1306_PIN_CONF_ALTERNATIVE
58#define SSD1306_ADVANCE_DEFAULT_PHASE1_PERIOD 0x01
59#define SSD1306_ADVANCE_DEFAULT_PHASE2_PERIOD 0x0F
60#define SSD1306_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY 0x08
61#define SSD1306_ADVANCE_DEFAULT_CLOCK_DIVIDE 0x00
62#define SSD1306_ADVANCE_DEFAULT_DISPLAY_OFFSET 0x00
63#define SSD1306_ADVANCE_DEFAULT_MULTIPLEX_RATIO 0x3F
64#define SSD1306_ADVANCE_DEFAULT_DISPLAY_MODE SSD1306_DISPLAY_MODE_NORMAL
65#define SSD1306_ADVANCE_DEFAULT_SCAN_DIRECTION SSD1306_SCAN_DIRECTION_COMN_1_START
66#define SSD1306_ADVANCE_DEFAULT_SEGMENT SSD1306_SEGMENT_COLUMN_ADDRESS_127
67#define SSD1306_ADVANCE_DEFAULT_CONTRAST 0xCF
68#define SSD1306_ADVANCE_DEFAULT_ZOOM_IN SSD1306_ZOOM_IN_DISABLE
69#define SSD1306_ADVANCE_DEFAULT_FADE_BLINKING_MODE SSD1306_FADE_BLINKING_MODE_DISABLE
70#define SSD1306_ADVANCE_DEFAULT_FADE_FRAMES 0x00
71#define SSD1306_ADVANCE_DEFAULT_DISPLAY_START_LINE 0x00
72#define SSD1306_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS 0x00
73#define SSD1306_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS 0x00
74#define SSD1306_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START 0x00
75#define SSD1306_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END 0x07
76#define SSD1306_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START 0x00
77#define SSD1306_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END 0x7F
78
89
97uint8_t ssd1306_advance_deinit(void);
98
106uint8_t ssd1306_advance_display_on(void);
107
115uint8_t ssd1306_advance_display_off(void);
116
124uint8_t ssd1306_advance_clear(void);
125
136uint8_t ssd1306_advance_write_point(uint8_t x, uint8_t y, uint8_t data);
137
148uint8_t ssd1306_advance_read_point(uint8_t x, uint8_t y, uint8_t *data);
149
163uint8_t ssd1306_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1306_font_t font);
164
177uint8_t ssd1306_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color);
178
191uint8_t ssd1306_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img);
192
201
210
221
230
242uint8_t ssd1306_advance_vertical_left_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows,
244
256uint8_t ssd1306_advance_vertical_right_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows,
258
262
263#ifdef __cplusplus
264}
265#endif
266
267#endif
driver ssd1306 interface header file
ssd1306_interface_t
ssd1306 interface enumeration definition
ssd1306_font_t
ssd1306 font enumeration definition
ssd1306_address_t
ssd1306 address pin enumeration definition
ssd1306_scroll_frame_t
ssd1306 scroll frame enumeration definition
ssd1306_fade_blinking_mode_t
ssd1306 fade blinking mode enumeration definition
uint8_t ssd1306_advance_init(ssd1306_interface_t interface, ssd1306_address_t addr)
advance example init
uint8_t ssd1306_advance_display_on(void)
advance example display on
uint8_t ssd1306_advance_disable_zoom_in(void)
advance example disable the zoom in
uint8_t ssd1306_advance_vertical_left_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1306_scroll_frame_t frames)
advance example enable the left horizontal scroll
uint8_t ssd1306_advance_vertical_right_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1306_scroll_frame_t frames)
advance example enable the right horizontal scroll
uint8_t ssd1306_advance_read_point(uint8_t x, uint8_t y, uint8_t *data)
advance example read a point
uint8_t ssd1306_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
advance example draw a picture
uint8_t ssd1306_advance_deactivate_scroll(void)
advance example deactivate the scroll
uint8_t ssd1306_advance_deinit(void)
advance example deinit
uint8_t ssd1306_advance_enable_zoom_in(void)
advance example enable the zoom in
uint8_t ssd1306_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
advance example fill a rectangle
uint8_t ssd1306_advance_clear(void)
advance example clear
uint8_t ssd1306_advance_display_off(void)
advance example display off
uint8_t ssd1306_advance_write_point(uint8_t x, uint8_t y, uint8_t data)
advance example write a point
uint8_t ssd1306_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1306_font_t font)
advance example draw a string
uint8_t ssd1306_advance_fade_blinking(ssd1306_fade_blinking_mode_t mode, uint8_t frames)
advance example set the fade blinking mode