circuitpython/ports/nrf/boards/challenger_840/challenger_840.py

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