Last active
September 11, 2017 18:24
-
-
Save jbobrow/ee0986320caf7d974738ef50a4f3c187 to your computer and use it in GitHub Desktop.
First model for handling Blinks processes in a sequential mode.
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
/* | |
* The Blinks Ecosystem | |
* | |
* | |
* "biota.h" -- too obscure... unrelated the exhisting blinks terminology? | |
* | |
* by Jonathan Bobrow | |
* 09.11.2017 | |
* | |
*/ | |
void setup() { | |
/* ------------------------- | |
* Blinks Inits | |
* ------------------------- | |
*/ | |
} | |
void loop() { | |
/* ------------------------- | |
* Neighbor Handling | |
* ------------------------- | |
*/ | |
if( neighborDidChange() ){ | |
} | |
/* ------------------------- | |
* Step Handling | |
* ------------------------- | |
*/ | |
if( stepCalled() ){ | |
} | |
/* ------------------------- | |
* Button Handling | |
* ------------------------- | |
*/ | |
if( buttonPressed() ){ | |
// button just started being pressed | |
} | |
if( buttonDown() ){ | |
// button is currently down | |
} | |
if( buttonTripleClicked() ){ | |
// button has been triple clicked | |
} | |
else if( buttonDoubleClicked() ){ | |
// button has been double clicked | |
} | |
else if( buttonClicked() ){ | |
// button has been clicked | |
} | |
if( buttonReleased() ){ | |
// button just became released (up after being down) | |
} | |
/* ------------------------- | |
* Updates | |
* ------------------------- | |
*/ | |
/* ------------------------- | |
* State Manager | |
* ------------------------- | |
*/ | |
/* ------------------------- | |
* Display Manager | |
* ------------------------- | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment