File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package machine
4
4
5
5
const HasLowFrequencyCrystal = true
6
6
7
- // LEDs on the reel board
7
+ // Pins on the reel board
8
8
const (
9
9
LED Pin = LED1
10
10
LED1 Pin = LED_YELLOW
@@ -47,3 +47,15 @@ const (
47
47
SPI0_MOSI_PIN Pin = 45
48
48
SPI0_MISO_PIN Pin = 46
49
49
)
50
+
51
+ // PowerSupplyActive enables the supply voltages for nRF52840 and peripherals (true) or only for nRF52840 (false)
52
+ // This controls the TPS610981 boost converter. You must turn the power supply active in order to use the EPD and
53
+ // other onboard peripherals.
54
+ func PowerSupplyActive (active bool ) {
55
+ POWER_SUPPLY_PIN .Configure (PinConfig {Mode : PinOutput })
56
+ if active {
57
+ POWER_SUPPLY_PIN .High ()
58
+ } else {
59
+ POWER_SUPPLY_PIN .Low ()
60
+ }
61
+ }
You can’t perform that action at this time.
0 commit comments