/*
Written by Brandon Watson for the AI & Arduino Coding Assignment in CTCH 110 Fall 2023 at the University of Regina.
The following code is designed to act as a check for whether you can successfully upload code to your Adafruit FLORA.
*/
#include <Adafruit_NeoPixel.h> // Include the NeoPixel library
#define PIN 8 // Pick the pin on the FLORA that the LED is connected to (in this case, pin 8)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin(); // Initialize the LED pixel
strip.show(); // Initialize the pixel to 'off'
}
void loop() {
strip.setPixelColor(0, 0, 200, 100);
strip.show();
delay(500); //Delay for 500 miliseconds
strip.setPixelColor(0, 0, 0, 0);
strip.show();
delay(300); //Delay for 300 miliseconds
}