Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/machine/board_reelboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package machine

const HasLowFrequencyCrystal = true

// LEDs on the reel board
// Pins on the reel board
const (
LED Pin = LED1
LED1 Pin = LED_YELLOW
Expand Down Expand Up @@ -47,3 +47,15 @@ const (
SPI0_MOSI_PIN Pin = 45
SPI0_MISO_PIN Pin = 46
)

// PowerSupplyActive enables the supply voltages for nRF52840 and peripherals (true) or only for nRF52840 (false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to add to this comment that "This controls the TPS610981 boost converter. You must turn the power supply active in order to use the EPD and other onboard peripherals."

// This controls the TPS610981 boost converter. You must turn the power supply active in order to use the EPD and
// other onboard peripherals.
func PowerSupplyActive(active bool) {
POWER_SUPPLY_PIN.Configure(PinConfig{Mode: PinOutput})
if active {
POWER_SUPPLY_PIN.High()
} else {
POWER_SUPPLY_PIN.Low()
}
}