This sketch kept crashing - here’s the arduino code.
Serial.begin(9600);
pinMode(LEDpin, OUTPUT);
void loop() {
// potentioReading();
int inByte = Serial.read(); // read it
Serial.write(inByte); // send it back out as raw binary data
analogWrite(LEDpin, inByte); // use it to set the LED brightness
}
Behaviour that causes the browser to crash:
Pressing any key, or clicking/dragging the mouse key.
Additionally, I’m unclear on a few of these question - to be discussed in 11/02 class.