Date: Nov. 12th 2023
Group members: Youer
My team connected the sensor for the midterm project and set it as input. Then, the p5js loaded the videos as the output. I want to reverse the direction this time, with p5js as the input and LED on Arduino as the output.
The interaction of the keyboard and mouse on the computer will be displayed by LED as an output display.
In P5, I want to set the movement of mouseY to generate a gradient, and the LED light will gradually turn on and off accordingly. When pressing "L" on the keyboard, p5 will light up when odd numbers are pressed and turn off when even numbers are pressed. The LED lights also turn on during odd numbers and turn off during even numbers.
The first is to simulate the sliding control of the light gradually turning on, and the second is to simulate the effect of a switch.