mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Fix AXP192 lcd voltage for M5Stack Core2
This commit is contained in:
parent
e357513a49
commit
9d8626e9ca
@ -1,4 +1,3 @@
|
||||
|
||||
#-------------------------------------------------------------
|
||||
- Generic driver for AXP192
|
||||
-------------------------------------------------------------#
|
||||
@ -265,7 +264,7 @@ class AXP192_M5Stack_Core2 : AXP192
|
||||
def set_lcd_voltage(voltage)
|
||||
if voltage < 2500 voltage = 2500 end
|
||||
if voltage > 3300 voltage = 3300 end
|
||||
self.set_ldo_voltage(2, voltage)
|
||||
self.set_dc_voltage(3, voltage)
|
||||
end
|
||||
|
||||
# set state of the green led, GPIO 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user