| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef __OLED_COMMON_H
- #define __OLED_COMMON_H
- //
- 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_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);
- #endif // __OLED_COMMON_H
|