Merge pull request #12661 from s-hadinger/fix_axp192_m5stack_core2

Fix AXP192 lcd voltage for M5Stack Core2
This commit is contained in:
s-hadinger 2021-07-15 22:29:44 +02:00 committed by GitHub
commit 7562cefdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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