Homework November 1

Part 1. Control a servo motor connected to Arduino using your mouse in Processing.

Arduino code:

Processing code:

 

 

Part 2. Control an LED connected to Arduino using two rectangles in Processing. Click the mouse inside one rectangle to turn the LED on, and click on the other rectangle to turn it off. 

Arduino code:

 

 

Processing code:

Leave a Reply

Your email address will not be published. Required fields are marked *