Giter Club home page Giter Club logo

hcid521wi2019's Introduction

HCID521Wi2019

The github repo for HCID521 - Prototyping Studio Winter 2019

Arduino

Digital Output Examples

Blink.ino
Turns on and off Pin 3 once a second

BlinkWithSerialPrint.ino
Turns on and off Pin 3 and shows how to use Serial.print to print values to the Serial Monitor

Blink2.ino
Demonstrates two configurations of activating LEDs. One where the LED anode (long leg) is pointed towards an output pin (in this case, Pin 3). In this configuration, driving Pin 3 HIGH will turn on the LED. And the second where the LED anode is connected to 5V and the cathode is connected towards Pin 4. In this configuration, driving Pin 4 HIGH will turn off the LED. See lecture slides for details.

Analog Output Examples

Using an LED

FadeOneDirection.ino
This example shows how to fade an LED on Pin 3 using the analogWrite() function. The fade goes in one direction (from off to a fade on) and then repeats (off to fade on)

Fade.ino
This example shows how to fade an LED on Pin 3 using the analogWrite() function. The fade goes both directions (fades on and then fades off)

Using the RGB LED

BlinkRGB.ino
Flashes (blinks) through a series of colors using the RGB LED. For a simpler version of this code, see BlinkRGBSimple.ino.

BlinkRGBSimple.ino
Flashes (blinks) through a series of colors using the RGB LED. Should be more straightforward to understand than BlinkRGB.ino

BlinkRGBBrightness.ino
Flashes (blinks) through a series of colors using the RGB LED. The brightness of the RGB LED is set by _curBrightness, which ranges from [0, 100] where 100 is brightest and 0 is off.

FadeRGB.ino
Fades through all of the colors of the RGB LED.

FadeHSL.ino
Fades through all of the colors of the RGB LED using the HSL color space.

Analog Input Examples

Using a Trim Potentiometer

The trim potentiometers you have in your kits have 0 - 10K ohms of resistance (see the Adafruit website)

TrimpotLED.ino
This example reads in a potentiometer value (from A0) and sets the brightness of an LED (hooked up to Pin 3).

TrimpotRGBBrightness.ino
This example reads in a potentiometer value (from A0) and sets the brightness of an RGB LED. For a simpler though less responsive version of this program, see TrimpotRGBBrightnessSimple.

TrimpotRGBBrightnessSimple.ino
This example reads in a potentiometer value (from A0) and sets the brightness of an RGB LED. While more straightforward than TrimpotRGBBrightness, it uses delay() function calls which makes the prototype seem less responsive to changes in the potentiometer.

hcid521wi2019's People

Contributors

jonfroehlich avatar

Watchers

 avatar

Forkers

yewmna koson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.