mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-23 16:23:05 +08:00
- Rename component directory from lvgl_st7735s_use to lvgl_st7789_use - Update CMakeLists.txt to register new source files - Add comprehensive README documentation for ST7789 configuration - Add time_alarm module with SNTP synchronization and alarm management - Add sensors header for sensor abstraction layer
26 lines
442 B
C
26 lines
442 B
C
#ifndef PERIPHERALS_H
|
|
#define PERIPHERALS_H
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SERVO_GPIO (10)
|
|
|
|
esp_err_t peripherals_init(void);
|
|
|
|
/* Peripheral control task (created from main.c) */
|
|
void peripheral_control_task(void *pvParameters);
|
|
|
|
/* GPIO and servo helpers */
|
|
void init_gpio_output(void);
|
|
void servo_init(void);
|
|
void servo_set_angle(uint16_t angle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // PERIPHERALS_H
|