u8g_glue.h 484 B

12345678910111213141516171819202122
  1. #ifndef _U8G_GLUE_H_
  2. #define _U8G_GLUE_H_
  3. #include "u8g.h"
  4. struct _lu8g_userdata_t
  5. {
  6. u8g_t u8g;
  7. uint8_t i2c_addr;
  8. uint8_t use_delay;
  9. int cb_ref;
  10. };
  11. typedef struct _lu8g_userdata_t lu8g_userdata_t;
  12. // shorthand macro for the u8g structure inside the userdata
  13. #define LU8G (&(lud->u8g))
  14. uint8_t u8g_com_esp8266_fbrle_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
  15. uint8_t u8g_dev_gen_fb_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, void *arg);
  16. #endif