This file contains 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
/* Blinks Send/Receive (Test) | |
* | |
* -------------------------------------------------------------------------------------------------- | |
* IMPORTANT: To use this code in Arduino's IDE, first move the Move38-Blinks folder | |
* into the right directory i.e. <user home directory>/Documents/Arduino/hardware/Move38-Blinks | |
* Then open the Arduino IDE and select Tools > Board > "Move38-Blinks" | |
* Now you should be good to go :) (thanks to the hard work of Josh Levine – josh.com) | |
* -------------------------------------------------------------------------------------------------- | |
* | |
* by Jonathan Bobrow |
This file contains 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
/* | |
* Color By Number/Neigbor | |
* | |
* An example showing how to use the blinkstate library. | |
* | |
* Each Blink broadcasts 1 to its neighbors, letting its neigbors know it's present. | |
* Each Blink displays a color based on the number of neighbors around it. | |
* | |
*/ |
This file contains 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
/* | |
* Speed up the rotation of LEDs lights or slow down based on button press | |
*/ | |
#include "blinklib.h" | |
#include "Serial.h" | |
ServicePortSerial Serial; | |
#define MS_PER_S (1000) |
This file contains 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
/* | |
* Take on the color of the dominant Blink attached | |
*/ | |
byte myState = 0; | |
Color colors[] = { BLUE, RED, YELLOW, ORANGE, GREEN}; | |
const byte myState_count = COUNT_OF (colors); | |
bool errorFlag[ FACE_COUNT ]; |
This file contains 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
/* | |
Blinks Dev-Kit | |
Validation Test for Dev Kit Blinks | |
4 modes for testing | |
1. Verify RGB on all 6 faces together | |
2. Verify RGB on each of the 6 faces individually | |
3. Verify communication w/ awake neighbors | |
4. Verify cold sleep (<0.2µA) |