oled_u8g2.h 613 B

1234567891011121314151617181920212223
  1. /*!
  2. \file oled_u8g2.h
  3. \brief the header file of u8g2 oled
  4. \author Ken
  5. \version 2024-06-11, V1.0.0
  6. */
  7. #ifndef __MD_OLED_U8G2_H
  8. #define __MD_OLED_U8G2_H
  9. #include "u8g2.h"
  10. #include "u8x8.h"
  11. #include "stdlib.h"
  12. // OLED控制用函数
  13. uint8_t u8x8_byte_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  14. uint8_t u8x8_stm32_gpio_and_delay(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int,
  15. U8X8_UNUSED void *arg_ptr);
  16. void u8g2Init(u8g2_t *u8g2);
  17. void draw(u8g2_t *u8g2);
  18. void test_oled_u8g2(uint8_t num);
  19. #endif