1
0
Weather_ESP/components/display/esp32_ucglib_hal.h
Christian Loch 1cb397c98a Add ESP32_TFT lib, remove Ucglib
Implement first version of interface
2020-04-20 05:19:42 +02:00

23 рядки
437 B
C

#ifndef ESP32_UCGLIB_HAL_H
#define ESP32_UCGLIB_HAL_H
#include <ucg.h>
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "driver/i2c.h"
#include "esp_intr_alloc.h"
#include <esp_log.h>
typedef struct {
gpio_num_t clk;
gpio_num_t mosi;
gpio_num_t cs;
gpio_num_t reset;
gpio_num_t dc;
} ucg_esp32_hal_t ;
int16_t ucg_esp32_hal(ucg_t *ucg, int16_t msg, uint16_t arg, uint8_t *data);
#endif /* ESP32_UCGLIB_HAL_H */