Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
280 B
Python
Raw Normal View History

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
def ldo_on():
global _LDO_PIN
_LDO_PIN.value = True
2022-12-11 17:25:26 +01:00
def ldo_off():
global _LDO_PIN
_LDO_PIN.value = False