mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-23 18:53:03 +08:00
refactor(display): migrate from ST7735S to ST7789 driver
- 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
This commit is contained in:
25
main/peripherals.h
Normal file
25
main/peripherals.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user