I put an LED + side to Pin #2 and negative side to GND (through a small resistor). This is so simple but it's driving me crazy why this won't work.
Here is the code I put into the Arduino IDE.
Code: Select all
#include <Adafruit_CircuitPlayground.h>
#define LED_PIN 2 /* I also tried pin #6 , #10
void setup() {
pinMode(LED_PIN, OUTPUT);
CircuitPlayground.begin();
}
void loop() {
delay(500);
digitalWrite(LED_PIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_PIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}