Physical Computing - Week 6 - Controlling Windows (Serial)
This week I simply adapted a sketch I made for ICM a few weeks ago to be controlled via Serial by a potentiometer and a push button. The initial version was controlled with a DOM button and slider. I also changed the project slightly so that instead of each window simply being a solid color, they instead show a random photo taken by the Japanese deep-space rovers called MINERVA 11A and MIVERVA 11B. These images were the initial inspiration for the color scheme of this project.
The main challenge of this project was to send two different sensor values vial the serial connection. Ultimately it required that I send both values separated by a comma, and then ending with a line break. On the p5 side, I then took all values before a line break, split them into separate slots in an array using split(), and then used those values to control the sketch rather than the DOM elements.