Accidentally did two weeks of labs in one sitting.
This happened because I messed up pasting the script src for p5 web serial.
This functioned with no problem once I fixed the script src.
The potentiometer was finicky because of the board. (My board set-up was the same for the lab next week because I did that one first). Readings would also show the same finickiness.
The hello part would also work fine as long as the potentiometer was pushed in.
The bulb would light up when inputted into the serial monitor; however, if I put zero to turn it off, it would not. (Still not sure why.)
Tried taking out the resistor and putting one in to make it turn off. It didn’t change anything. (Resistance used was around 100 ohms.)
Tried messing with the pins (changing it around), and it still didn’t work.
As shown in the video, it did turn off when I used mouse drag with p5- not sure why it didn’t work with just the serial monitor portion of the lab.
Set-up being tested for input.
(values were fine as long as the potentiometer was stabilized on the breadboard.)
Just had issues with the potentiometer being loose on board. Would cause it to spazz out. Not really reliable although the code would work if the potentiometer was pushed in.