LibDriver SSD1315
Loading...
Searching...
No Matches
driver_ssd1315_advance.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_SSD1315_ADVANCE_H
38#define DRIVER_SSD1315_ADVANCE_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define SSD1315_ADVANCE_DEFAULT_DESELECT_LEVEL SSD1315_DESELECT_LEVEL_0P77
55#define SSD1315_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP SSD1315_LEFT_RIGHT_REMAP_DISABLE
56#define SSD1315_ADVANCE_DEFAULT_PIN_CONF SSD1315_PIN_CONF_ALTERNATIVE
57#define SSD1315_ADVANCE_DEFAULT_PHASE1_PERIOD 0x01
58#define SSD1315_ADVANCE_DEFAULT_PHASE2_PERIOD 0x0F
59#define SSD1315_ADVANCE_DEFAULT_IREF SSD1315_IREF_ENABLE
60#define SSD1315_ADVANCE_DEFAULT_IREF_VALUE SSD1315_IREF_VALUE_19UA_150UA
61#define SSD1315_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY 0x08
62#define SSD1315_ADVANCE_DEFAULT_CLOCK_DIVIDE 0x00
63#define SSD1315_ADVANCE_DEFAULT_DISPLAY_OFFSET 0x00
64#define SSD1315_ADVANCE_DEFAULT_MULTIPLEX_RATIO 0x3F
65#define SSD1315_ADVANCE_DEFAULT_DISPLAY_MODE SSD1315_DISPLAY_MODE_NORMAL
66#define SSD1315_ADVANCE_DEFAULT_SCAN_DIRECTION SSD1315_SCAN_DIRECTION_COMN_1_START
67#define SSD1315_ADVANCE_DEFAULT_SEGMENT SSD1315_SEGMENT_COLUMN_ADDRESS_127
68#define SSD1315_ADVANCE_DEFAULT_CONTRAST 0xCF
69#define SSD1315_ADVANCE_DEFAULT_ZOOM_IN SSD1315_ZOOM_IN_DISABLE
70#define SSD1315_ADVANCE_DEFAULT_FADE_BLINKING_MODE SSD1315_FADE_BLINKING_MODE_DISABLE
71#define SSD1315_ADVANCE_DEFAULT_FADE_FRAMES 0x00
72#define SSD1315_ADVANCE_DEFAULT_DISPLAY_START_LINE 0x00
73#define SSD1315_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS 0x00
74#define SSD1315_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS 0x00
75#define SSD1315_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START 0x00
76#define SSD1315_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END 0x07
77#define SSD1315_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START 0x00
78#define SSD1315_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END 0x7F
79
90
98uint8_t ssd1315_advance_deinit(void);
99
107uint8_t ssd1315_advance_display_on(void);
108
116uint8_t ssd1315_advance_display_off(void);
117
125uint8_t ssd1315_advance_clear(void);
126
137uint8_t ssd1315_advance_write_point(uint8_t x, uint8_t y, uint8_t data);
138
149uint8_t ssd1315_advance_read_point(uint8_t x, uint8_t y, uint8_t *data);
150
164uint8_t ssd1315_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1315_font_t font);
165
178uint8_t ssd1315_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color);
179
192uint8_t ssd1315_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img);
193
202
211
222
231
243uint8_t ssd1315_advance_vertical_left_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr,
244 uint8_t vertical_scrolling_offset,
246
258uint8_t ssd1315_advance_vertical_right_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr,
259 uint8_t vertical_scrolling_offset,
261
265
266#ifdef __cplusplus
267}
268#endif
269
270#endif
driver ssd1315 interface header file
ssd1315_fade_blinking_mode_t
ssd1315 fade blinking mode enumeration definition
ssd1315_interface_t
ssd1315 interface enumeration definition
ssd1315_scroll_frame_t
ssd1315 scroll frame enumeration definition
ssd1315_font_t
ssd1315 font enumeration definition
ssd1315_address_t
ssd1315 address pin enumeration definition
uint8_t ssd1315_advance_clear(void)
advance example clear
uint8_t ssd1315_advance_enable_zoom_in(void)
advance example enable the zoom in
uint8_t ssd1315_advance_vertical_left_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t vertical_scrolling_offset, ssd1315_scroll_frame_t frames)
advance example enable the left horizontal scroll
uint8_t ssd1315_advance_disable_zoom_in(void)
advance example disable the zoom in
uint8_t ssd1315_advance_deinit(void)
advance example deinit
uint8_t ssd1315_advance_deactivate_scroll(void)
advance example deactivate the scroll
uint8_t ssd1315_advance_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1315_font_t font)
advance example draw a string
uint8_t ssd1315_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
advance example draw a picture
uint8_t ssd1315_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
advance example fill a rectangle
uint8_t ssd1315_advance_read_point(uint8_t x, uint8_t y, uint8_t *data)
advance example read a point
uint8_t ssd1315_advance_display_on(void)
advance example display on
uint8_t ssd1315_advance_vertical_right_horizontal_scroll(uint8_t start_page_addr, uint8_t end_page_addr, uint8_t vertical_scrolling_offset, ssd1315_scroll_frame_t frames)
advance example enable the right horizontal scroll
uint8_t ssd1315_advance_write_point(uint8_t x, uint8_t y, uint8_t data)
advance example write a point
uint8_t ssd1315_advance_init(ssd1315_interface_t interface, ssd1315_address_t addr)
advance example init
uint8_t ssd1315_advance_fade_blinking(ssd1315_fade_blinking_mode_t mode, uint8_t frames)
advance example set the fade blinking mode
uint8_t ssd1315_advance_display_off(void)
advance example display off