Driver improvements (#226)
- Created driver subprojects: `FT5x06`, `FT6x36`, `CST816S`. - Refactored existing projects to use new drivers. - Improve `PwmBacklight` driver: expose frequency, channel id and timer id - Update `build-and-release-all.sh` for recent board addition
This commit is contained in:
committed by
GitHub
parent
6e8fbae62b
commit
933bc5fb97
@@ -1,11 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <driver/ledc.h>
|
||||
#include <driver/gpio.h>
|
||||
|
||||
namespace driver::pwmbacklight {
|
||||
|
||||
bool init(gpio_num_t pin);
|
||||
bool init(gpio_num_t pin, uint32_t frequencyHz = 40000, ledc_timer_t timer = LEDC_TIMER_0, ledc_channel_t channel = LEDC_CHANNEL_0);
|
||||
|
||||
void setBacklightDuty(uint8_t duty);
|
||||
bool setBacklightDuty(uint8_t duty);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user