//TEENSY
//#define PWR_EN0 39 //Function Board 0's "PWR_EN0" pin <= MicroMod SDIO_DATA2 => Teensy Proce
ssor Board (D39)
//#define PWR_EN1 34 //Function Board 1's "PWR_EN1" pin <= MicroMod SDIO_DATA1 => Teensy Proce
ssor Board (D34)
//Alternative option that does the same thing. Make sure to just choose one for PWR_EN0 and PWR_
EN1
//#define PWR_EN0 45 //Function Board 0's "PWR_EN0" pin <= MicroMod G5 => Teensy Processor Boa
rd (45)
//#define PWR_EN1 6 //Function Board 1's "PWR_EN1" pin <= MicroMod G6 => Teensy Processor Boar
d (6)
//Note: The SAMD51, ESP32, and STM32 Processor Board Pins do not have SDIO Data 2 and SDIO Data
1.
//SAMD51
//#define PWR_EN0 7 //Function Board 0's "PWR_EN0" pin <= MicroMod G5 => SAMD51 Processor Boar
d (D7)
//#define PWR_EN1 8 //Function Board 1's"PWR_EN1" pin <= MicroMod G6 => SAMD51 Processor Board
(D8)
//ESP32
//#define PWR_EN0 32 //Function Board 0's "PWR_EN0" pin <= MicroMod G5 => ESP32 Processor Boa
rd (32)
//#define PWR_EN1 33 //Function Board 1's"PWR_EN1" pin <= MicroMod G6 => ESP32 Processor Boar
d (33)
void setup() {
// initialize the digital pins as an output.
pinMode(PWR_EN0, OUTPUT);
pinMode(PWR_EN1, OUTPUT);
}
void loop() {
digitalWrite(PWR_EN0, HIGH); // turn the 3.3V regulator on (HIGH is the voltage level)
digitalWrite(PWR_EN1, HIGH); // turn the 3.3V regulator on (HIGH is the voltage level)
delay(5000); // wait for a few seconds to do something with the function board
s
digitalWrite(PWR_EN0, LOW); // turn the 3.3V regulator off by making the voltage LOW
digitalWrite(PWR_EN1, LOW); // turn the 3.3V regulator off by making the voltage LOW
delay(5000); // wait for a few seconds before turning function boards back on
}