mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- 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
13 lines
273 B
C++
13 lines
273 B
C++
#pragma once
|
|
|
|
#include <driver/ledc.h>
|
|
#include <driver/gpio.h>
|
|
|
|
namespace driver::pwmbacklight {
|
|
|
|
bool init(gpio_num_t pin, uint32_t frequencyHz = 40000, ledc_timer_t timer = LEDC_TIMER_0, ledc_channel_t channel = LEDC_CHANNEL_0);
|
|
|
|
bool setBacklightDuty(uint8_t duty);
|
|
|
|
}
|