It took me a bit to get back into the physical computing mindset with 2 hours of troubleshooting Arduino IDE and my breadboard and digging through old PComp blogs from a year ago, I realized my microcontroller is a Nano 33 BLE sense not an 33 ioT! I utilized this resource to start off my code. It is a simple linear fade in and out then interrupted by a push button. I changed the speed by changing both the delay() and my fadeAmount in my code. Now lets curve this!
int led = 13; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by
// the setup routine runs once when you press reset:
void setup() {
pinMode(led, OUTPUT);
Serial.begin(9600);
}
void loop() {
analogWrite(led, brightness);
brightness = brightness + fadeAmount;
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
delay(30);
}