mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
530c353ff8
* Upgrade u8g2 and add updateDisplayArea bindings * u8g2 2.25.10 * add displays for 2.24.3 and 2.25.10 * remove workaround for hal pointer and make use of u8x8's user_ptr * fix doc * add binding for `updateDisplay()`
26 lines
708 B
C
26 lines
708 B
C
|
|
#ifndef _U8X8_NODEMCU_HAL_H
|
|
#define _U8X8_NODEMCU_HAL_H
|
|
|
|
#include "u8g2.h"
|
|
|
|
|
|
// extend standard u8g2_t struct with info that's needed in the communication callbacks
|
|
typedef struct {
|
|
u8g2_t u8g2;
|
|
|
|
// elements for the overlay display driver
|
|
struct {
|
|
u8x8_msg_cb hardware_display_cb, template_display_cb;
|
|
int rfb_cb_ref;
|
|
uint8_t fb_update_ongoing;
|
|
} overlay;
|
|
} u8g2_nodemcu_t;
|
|
|
|
|
|
uint8_t u8x8_gpio_and_delay_nodemcu(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
|
uint8_t u8x8_byte_nodemcu_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
|
uint8_t u8x8_byte_nodemcu_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
|
|
|
#endif /* _U8X8_NODEMCU_HAL_H */
|