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
| #define SYNC_PAUSE_DURATION 200 | |
| byte urge = 0; | |
| byte brightness = 0; | |
| Timer faceTimer[6]; | |
| Timer sendTimer; | |
| void setup() { |
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
| /* | |
| Wake, Sleep, Program | |
| Wake - simple spiral before loading game state | |
| Sleep - simple spiral in reverse before going dark | |
| Program - flash with urgency | |
| */ | |
| uint32_t timeOfPress; |
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
| /* | |
| * Button Long Press and confirm on release | |
| */ | |
| bool hasBeenLongPressed = false; | |
| bool bFastPulse = false; | |
| byte bri[6]; | |
| void setup() { |
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
| /* | |
| Serial Reporter | |
| --------------- | |
| A utility app designed to make debugging of games | |
| that are buggy in transmitting game state. Essentially, | |
| this blink is a stethoscope for Blinks. | |
| The Serial Reporter will: | |
| 1. Look for values received on all faces | |
| 2. Print values when received on faces |
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
| /* | |
| Basic Blinks Sender | |
| ------------------- | |
| The Blinks Sender will: | |
| 1. Broadcast the number of the face on each face | |
| 2. When button pressed, send a Packet with a secret message | |
| by Jonathan Bobrow, Move38 | |
| 04.18.2019 |
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
| //-------------------------------------------------------------- | |
| void ofApp::dragEvent(ofDragInfo dragInfo){ | |
| // Retrieve the path of the single file dropped on our window | |
| filepath = dragInfo.files[0]; | |
| // Create a string for the entire command needed to load FW onto a Blink | |
| commandString = "avrdude -p m168pb -P usb -c usbtiny -U flash:w:" + filepath; | |
| // Convert string to const char * as system requires parameter of type const char * |
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
| /* | |
| 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) |
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
| /* | |
| PIRATES 'N' LASERS | |
| Animation Prototype | |
| Lasers | |
| 1. Dim Ships Status (Fade to Black) | |
| 2. Instant redline w/ exposure flash (Simultaneous w/ Dimming) | |
| 3. Step by step explosions @ 400ms per segment | |
| 4. Fade up the status of the ship | |
| 5. Fade a single health to black. |
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
| // State machine map: https://docs.google.com/presentation/d/1CsAItlWN2fxssGJggbDrWCFktAbGhIYJ73E4aiDmlCU/edit#slide=id.g6f17dd6178_0_0 | |
| // ********************************************************************** | |
| // **** TUNABLE CONSTANTS *********************************************** | |
| // ********************************************************************** | |
| #define masterColorSwitchGapLength 100 // Dark time in between color switches | |
| #define masterColorSwitchLengthMin 600 | |
| #define masterColorSwitchLengthMax 1200 | |
| #define masterColorSwitchLengthDelta 100 |
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
| /* | |
| * Rikki Tahta Sketch | |
| * | |
| * Count up. | |
| * Each click counts up | |
| * Double-click becomes a different display mode | |
| */ | |
| byte count = 0; | |
| bool bFlicker = false; |