| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef __OLED_COMMON_H
- #define __OLED_COMMON_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- //
- void init_oled(void);
- //
- void init_gpio_oled(void);
- //
- void oled_reset(void);
- //
- void oled_delay_ms(uint32_t ms);
- //
- void oled_command(uint8_t com);
- //
- void oled_data(uint8_t dat);
- //
- void oled_display(void);
- //
- void oled_bitmap(uint8_t *bitmap);
- //
- void oled_invert_colors(uint8_t invert);
- //
- void oled_rotate_display(uint8_t rotate);
- //
- void oled_display_on(uint8_t on);
- //
- void oled_set_contrast(uint8_t contrast);
- //
- void oled_start_scroll_right(uint8_t start_page, uint8_t end_page, uint8_t speed);
- //
- void oled_start_scroll_left(uint8_t start_page, uint8_t end_page, uint8_t speed);
- //
- void oled_stop_scroll(void);
- //
- void oled_init(void);
- //
- void oled_draw_pixel(int16_t x, int16_t y, uint8_t color);
- //
- void oled_clear(uint8_t color);
- // ------------------------------------------------------------------------------- //
- //
- void oled_draw_string_frame(uint8_t str_num);
- //
- void oled_draw_rec(int x_start, int y_start, int x_end, int y_end, uint8_t color);
- //
- void test_oled(void);
- #ifdef __cplusplus
- }
- #endif
- #endif // __OLED_COMMON_H
|