November 30, 2022

Week 12
Interfaces

For this week, I wanted to make something fun and simple. I used the web-serial-interface that Leo wrote (linked here) and downloaded the whole lot as a zip file.



When I load the embedded.ino file I get a simple counting programm



In the js file, you can see that newCount() is taking those numbers from arduino and feeding them through the html page.



The ball will start rolling across the screen when I connect my board to the port.



I added a few lines so that the page would show a counter: