@@ -14,6 +14,11 @@
#define LUAT_LOG_TAG "lcd"
#include "luat_log.h"
+#include "u8g2.h"
+int8_t u8g2_font_decode_get_signed_bits(u8g2_font_decode_t *f, uint8_t cnt);
+uint8_t u8g2_font_decode_get_unsigned_bits(u8g2_font_decode_t *f, uint8_t cnt);
+
enum
{
font_opposansm8,
@@ -7,6 +7,7 @@
#include "luat_base.h"
#include "luat_spi.h"
+#include "luat_malloc.h"
#include "sfud.h"
#define LUAT_LOG_TAG "luat.sfud"
@@ -49,6 +49,8 @@ typedef struct eink_conf {
uint8_t dc_pin;
uint8_t cs_pin;
uint8_t full_mode;
+ uint8_t port;
+ void* userdata;
}eink_conf_t;
extern eink_conf_t econf;
@@ -24,7 +24,9 @@
#include <stdlib.h>
-// #include "u8g2.h"
#define COLORED 0
#define UNCOLORED 1