Skip to content

Instantly share code, notes, and snippets.

@macchina
Created June 21, 2016 16:34
Show Gist options
  • Save macchina/a566f4691e6d7a413c5385c9f869c89a to your computer and use it in GitHub Desktop.
Save macchina/a566f4691e6d7a413c5385c9f869c89a to your computer and use it in GitHub Desktop.
Demonstrates how to turn on and off switched 12V and 5V rails.
#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