//SAMD51
//#define PWR_EN0 18 //Function Board 0's "PWR_EN0" pin <= MicroMod A1 => SAMD51 Processor Boa
rd (18)
void setup() {
// initialize the digital pin as an output.
pinMode(PWR_EN0, OUTPUT);
}
void loop() {
digitalWrite(PWR_EN0, 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
delay(5000); // wait for a few seconds before turning function boards back on
}
After uploading, take a look at your Function Board's PWR LED. The LED will be on for about 5 seconds and then
turn off for another 5 seconds. It will continue to repeat until power is removed from the MicroMod Main Board -
Single.
Example 2: MicroMod Main Board - Double Enable Function Boards
If you have not already, select your Board (in this case the
MicroMod Artemis
), and associated COM port. Copy
and paste the code below in your Arduino IDE. Hit the upload button and set the serial monitor to
115200
baud.