2022-12-11 17:11:24 +01:00
|
|
|
import board
|
|
|
|
import digitalio
|
|
|
|
|
|
|
|
_LDO_PIN = digitalio.DigitalInOut(board.LDO_CONTROL)
|
|
|
|
_LDO_PIN.direction = digitalio.Direction.OUTPUT
|
|
|
|
_LDO_PIN.value = True
|
|
|
|
|
2022-12-11 17:25:26 +01:00
|
|
|
|
2022-12-11 17:11:24 +01:00
|
|
|
def ldo_on():
|
|
|
|
global _LDO_PIN
|
|
|
|
_LDO_PIN.value = True
|
|
|
|
|
2022-12-11 17:25:26 +01:00
|
|
|
|
2022-12-11 17:11:24 +01:00
|
|
|
def ldo_off():
|
|
|
|
global _LDO_PIN
|
|
|
|
_LDO_PIN.value = False
|