mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
ili9341 callbacks
This commit is contained in:
parent
dc2932db55
commit
d86353369e
@ -530,7 +530,10 @@ void ili9342_bpwr(uint8_t on);
|
|||||||
void ILI9341_2::DisplayOnff(int8_t on) {
|
void ILI9341_2::DisplayOnff(int8_t on) {
|
||||||
|
|
||||||
if ((_hwspi >= 2) && (_bp < 0)) {
|
if ((_hwspi >= 2) && (_bp < 0)) {
|
||||||
ili9342_bpwr(on);
|
//ili9342_bpwr(on);
|
||||||
|
if (pwr_cbp) {
|
||||||
|
pwr_cbp(on);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (on) {
|
if (on) {
|
||||||
@ -604,7 +607,10 @@ void ILI9341_2::dim(uint8_t dim) {
|
|||||||
ledcWrite(ESP32_PWM_CHANNEL,dimmer);
|
ledcWrite(ESP32_PWM_CHANNEL,dimmer);
|
||||||
} else {
|
} else {
|
||||||
if (_hwspi>=2) {
|
if (_hwspi>=2) {
|
||||||
ili9342_dimm(dim);
|
//ili9342_dimm(dim);
|
||||||
|
if (dim_cbp) {
|
||||||
|
dim_cbp(dim);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user