u8x8_nodemcu_hal.h 542 B

12345678910111213141516171819
  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. void *hal;
  8. } u8g2_nodemcu_t;
  9. uint8_t u8x8_gpio_and_delay_nodemcu(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  10. uint8_t u8x8_byte_nodemcu_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  11. uint8_t u8x8_byte_nodemcu_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
  12. #endif /* _U8X8_NODEMCU_HAL_H */