Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Created October 13, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infamousjoeg/0e981e5664e6ec9cbf7ef0ac9df95690 to your computer and use it in GitHub Desktop.
Save infamousjoeg/0e981e5664e6ec9cbf7ef0ac9df95690 to your computer and use it in GitHub Desktop.
Test Script for Arduino IDE & Digispark
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output
pinMode(0, OUTPUT); //LED on Model B
pinMode(1, OUTPUT); //LED on Model A
}
// the lop routine runs over and over again forever:
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(1, HIGH);
delay(1000); // wait for a second
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
digitalWrite(1, LOW);
delay(1000); // wait for a second
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment