Created
June 21, 2016 16:34
-
-
Save macchina/a566f4691e6d7a413c5385c9f869c89a to your computer and use it in GitHub Desktop.
Demonstrates how to turn on and off switched 12V and 5V rails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SamNonDuePin.h" | |
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin | |
void setup() { | |
pinModeNonDue(LPC, OUTPUT); | |
digitalWriteNonDue(LPC, LOW); // LOW = no power at +12V_SW/+5V_SW | |
// HIGH = power at +12V_SW/+5V_SW | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment