Repo for ESP32 Weather Station Development
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
437B

  1. #ifndef ESP32_UCGLIB_HAL_H
  2. #define ESP32_UCGLIB_HAL_H
  3. #include <ucg.h>
  4. #include "driver/gpio.h"
  5. #include "driver/spi_master.h"
  6. #include "driver/i2c.h"
  7. #include "esp_intr_alloc.h"
  8. #include <esp_log.h>
  9. typedef struct {
  10. gpio_num_t clk;
  11. gpio_num_t mosi;
  12. gpio_num_t cs;
  13. gpio_num_t reset;
  14. gpio_num_t dc;
  15. } ucg_esp32_hal_t ;
  16. int16_t ucg_esp32_hal(ucg_t *ucg, int16_t msg, uint16_t arg, uint8_t *data);
  17. #endif /* ESP32_UCGLIB_HAL_H */