u8x8_nodemcu_hal.h 708 B

12345678910111213141516171819202122232425
  1. #ifndef _U8X8_NODEMCU_HAL_H
  2. #define _U8X8_NODEMCU_HAL_H
  3. #include "u8g2.h"
  4. // extend standard u8g2_t struct with info that's needed in the communication callbacks
  5. typedef struct {
  6. u8g2_t u8g2;
  7. // elements for the overlay display driver
  8. struct {
  9. u8x8_msg_cb hardware_display_cb, template_display_cb;
  10. int rfb_cb_ref;
  11. uint8_t fb_update_ongoing;
  12. } overlay;
  13. } u8g2_nodemcu_t;
  14. uint8_t u8x8_gpio_and_delay_nodemcu(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  15. uint8_t u8x8_byte_nodemcu_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  16. uint8_t u8x8_byte_nodemcu_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  17. #endif /* _U8X8_NODEMCU_HAL_H */