| 1 | # Hello Circuit Playground |
|---|
| 2 | A set of very basic example sketches to demonstrate the various components |
|---|
| 3 | of the [Circuit Playground](https://www.adafruit.com/products/3000). |
|---|
| 4 | These sketches were tested and verified with: |
|---|
| 5 | * Circuit Playground Developer Edition |
|---|
| 6 | * Ubuntu 16.04 LTS |
|---|
| 7 | * Arduino IDE 1.6.11 |
|---|
| 8 | * Adafruit AVR Boards 1.4.9 |
|---|
| 9 | * Adafruit Circuit Playground Library 1.6.1 |
|---|
| 10 | |
|---|
| 11 | ## Hello_Blink |
|---|
| 12 | Blinks the little red LED next to the micro USB connector once per second. |
|---|
| 13 | |
|---|
| 14 | ## Hello_SlideSwitch |
|---|
| 15 | The position (+ or -) of the slide switch is sent to the serial monitor once |
|---|
| 16 | per second. |
|---|
| 17 | ``` |
|---|
| 18 | Slide Switch: - |
|---|
| 19 | Slide Switch: + |
|---|
| 20 | Slide Switch: + |
|---|
| 21 | ``` |
|---|
| 22 | |
|---|
| 23 | ## Hello_Buttons |
|---|
| 24 | The position (UP or DOWN) of the two push buttons are sent to the serial |
|---|
| 25 | monitor once per second. |
|---|
| 26 | ``` |
|---|
| 27 | Left Button: UP Right Button: UP |
|---|
| 28 | Left Button: DOWN Right Button: UP |
|---|
| 29 | Left Button: UP Right Button: UP |
|---|
| 30 | Left Button: UP Right Button: DOWN |
|---|
| 31 | ``` |
|---|
| 32 | |
|---|
| 33 | ## Hello_LightSensor |
|---|
| 34 | The reading (0-1023) from the light sensor is sent to the serial monitor once |
|---|
| 35 | per second. |
|---|
| 36 | ``` |
|---|
| 37 | Light Sensor: 962 |
|---|
| 38 | Light Sensor: 954 |
|---|
| 39 | Light Sensor: 275 |
|---|
| 40 | Light Sensor: 192 |
|---|
| 41 | Light Sensor: 688 |
|---|
| 42 | ``` |
|---|
| 43 | |
|---|
| 44 | ## Hello_Temperature |
|---|
| 45 | The temperature is sent to the serial monitor once per second. |
|---|
| 46 | ``` |
|---|
| 47 | tempC: 28.25 tempF: 83.02 |
|---|
| 48 | tempC: 29.71 tempF: 85.64 |
|---|
| 49 | tempC: 30.72 tempF: 87.30 |
|---|
| 50 | tempC: 31.85 tempF: 89.32 |
|---|
| 51 | ``` |
|---|
| 52 | |
|---|
| 53 | ## Hello_Accelerometer |
|---|
| 54 | The readings (in m/s<sup>2</sup>) from the 3 axes of the accelerometer are sent |
|---|
| 55 | to the serial monitor once per second. (1G ~= 9.8 m/s<sup>2</sup>) |
|---|
| 56 | ``` |
|---|
| 57 | X: -0.33 Y: 2.41 Z: 9.40 |
|---|
| 58 | X: -1.25 Y: 4.20 Z: 1.86 |
|---|
| 59 | X: -7.95 Y: -3.50 Z: -2.47 |
|---|
| 60 | X: 0.11 Y: -8.38 Z: 2.25 |
|---|
| 61 | X: -2.28 Y: 2.73 Z: 9.10 |
|---|
| 62 | ``` |
|---|
| 63 | |
|---|
| 64 | ## Hello_SoundSensor |
|---|
| 65 | The reading (0-1023) from the sound sensor (microphone) is sent to the serial |
|---|
| 66 | monitor once per second. |
|---|
| 67 | ``` |
|---|
| 68 | Sound Sensor: 339 |
|---|
| 69 | Sound Sensor: 339 |
|---|
| 70 | Sound Sensor: 1023 |
|---|
| 71 | Sound Sensor: 10 |
|---|
| 72 | Sound Sensor: 15 |
|---|
| 73 | Sound Sensor: 1023 |
|---|
| 74 | Sound Sensor: 336 |
|---|
| 75 | ``` |
|---|
| 76 | |
|---|
| 77 | ## Hello_Speaker |
|---|
| 78 | Plays a 500Hz tone for 0.1 seconds on the speaker, followed by 1 second of |
|---|
| 79 | silence. |
|---|
| 80 | |
|---|
| 81 | ## Hello_NeoPixels |
|---|
| 82 | Clears all pixels for 0.5 seconds then displays colors on the fist 5 pixels |
|---|
| 83 | using individual 8-bit values and the same colors on the next 5 pixels using |
|---|
| 84 | 24-bit values. After 5 seconds, this repeats. |
|---|