mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
Merge pull request #12661 from s-hadinger/fix_axp192_m5stack_core2
Fix AXP192 lcd voltage for M5Stack Core2
This commit is contained in:
commit
7562cefdf5
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
- Generic driver for AXP192
|
- Generic driver for AXP192
|
||||||
-------------------------------------------------------------#
|
-------------------------------------------------------------#
|
||||||
@ -265,7 +264,7 @@ class AXP192_M5Stack_Core2 : AXP192
|
|||||||
def set_lcd_voltage(voltage)
|
def set_lcd_voltage(voltage)
|
||||||
if voltage < 2500 voltage = 2500 end
|
if voltage < 2500 voltage = 2500 end
|
||||||
if voltage > 3300 voltage = 3300 end
|
if voltage > 3300 voltage = 3300 end
|
||||||
self.set_ldo_voltage(2, voltage)
|
self.set_dc_voltage(3, voltage)
|
||||||
end
|
end
|
||||||
|
|
||||||
# set state of the green led, GPIO 1
|
# set state of the green led, GPIO 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user