This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 7.40 - Grove - Project 1: Control the LED blink rate with a potentiometer | |
| Control how fast an LED blinks with a potentiometer. | |
| Simply turn the pot one way to speed up blinking, and the other way to | |
| slow it. | |
| Components |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.21 - Grove - 0.54 inch Red Quad Alphanumeric Display position demo | |
| * | |
| This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display. | |
| It will print letters and numbers at specific positions, and also control the | |
| blink rate and dots. | |
| Components | |
| ---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.20 - Grove - 0.54 inch Red Quad Alphanumeric Display demo | |
| * | |
| This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display. | |
| It will print letters and numbers. | |
| Components | |
| ---------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.12 - Grove LCD RGB Backlight module, custom characters | |
| * | |
| This sketch demonstrates how to use the Grove LCD RGB Backlight module. | |
| Specifically, it shows how to create and display custom characters. | |
| To create a custom character, you must draw it using pixels. Each character | |
| is drawn on a 8x5 pixel array (8 rows, 5 columns). | |
| For example, a smily emoji would looks like this ("x" is an "off" pixel, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.10 - Grove LCD RGB Backlight module Hello World | |
| * | |
| This sketch demonstrates how to use the Grove LCD RGB Backlight module. | |
| It will print a welcome message and start a counter, with a red backlight. | |
| Components | |
| ---------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 05.60 - Grove servo motors | |
| * | |
| This sketch demonstrates how to use the Grove servo motor. | |
| For the servo motor to | |
| work, you must connect it to a PWM-capable pin. | |
| Grove sockets that breakout PWM pins are D3, D5, D6, and D8 (inner pin only). | |
| Connect the servo motor to Grove socket D3 and upload the sketch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 05.50 - Grove Relay module | |
| * | |
| This sketch demonstrates how to use the Grove relay module. | |
| This sketch is identical to the one from 05.10, that we used with the | |
| LED kit module. We'll use a digital pin to energise the relay coil, and | |
| drive a large electrical load. | |
| The load can be anything the draws less than 10A current and 30V. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 05.040 - Grove buzzer module | |
| This sketch demonstrates how to use the Grove buzzer module to make noise. | |
| This sketch is supported by a second file that contains definitions of tone names | |
| and their frequencies. We use these tones to play some music. | |
| Components | |
| ---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 05.010 - Grove LED module | |
| * | |
| This sketch demonstrates how to use the Grove LED kit. | |
| This module contains a header in which you can attach an LED. Take care | |
| to connect the anode (long pin) of the LED into the socket marked with "+". | |
| The cathode should go to the socket marked with "-". | |
| You can use a Phillips screwdriver to adjust the brightens by turning the | |
| on-board potentiometer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 04.030 - Grove sound sensor | |
| * | |
| This sketch demonstrates how to use the Grove sound sensor. | |
| The sound sensor is an analog device. It outputs a voltage | |
| level that depends on the intensity of the sound it captures. | |
| This sketch calculates the volume of the sound based on the | |
| last 32 samples it captures. | |
| Upload this sketch and start the Serial monitor (you can also use |