Week 3 Classwork

Lab 1:

This exercise used a button to trigger LEDs switch from on to off. Here is a link to the code and video.

Lab 2:

This exercise used a potentiometer to trigger the LED’s brightness. Converting the analog data to a number between 0 and 255 (color/brightness) requires us to either divide the analog value or map it between 0 and 255.  Here is a link to the code and video.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s