This week the exercise was about designing and interface and application for the Input or Output device. i am using the same Board for my input and put put exercise which is HELLOboard with RGBled and Button, i have decided to make the interface to switch on the LED by defining a different colour for that board. and i am using processing so via serial communication i was connecting to the board and using the application. Here is the link to see the details
Sometimes while communicating with serial monitor from processing to Arduino one thing you have to be really careful that which port is your Arduino using. I know that the first port in the serial list on my mac is always my FTDI adaptor, so I open Serial.list()[0]. so in my case its [2]. On Windows machines, this generally opens COM1. Open whatever port is the one you're using. Here is the link to download Arduino code and Processing code
In processing, after writing a code, check if the mouse is over a rectangle and writes the status to the serial port.
Now in the interface, If mouse is over square, change color and send an H to indicate mouse is over square, and there are three different square defining three different colour of RGB (Red, Green, Blue). If mouse is not over square, change color to Black and send an L otherwise. while processing this data to serial, arduino is reading that data from the serial and turning on and off the respective colour light of the RGBled, depending on the value.