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
/* | |
BEAT BLINKER | |
Simple demo of how to use two processing units | |
to implement a 'used to be' hard problem | |
*/ | |
Microphone mic = Microphone(2, 8000); //pin 2 samplerate 8000 ? | |
Filter lowPass = LowPassFilter(100); | |
Threshold threshold = Threshold(50); //50% | |
LED beatBlinker = LED(WLED); |
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
class PropertyTester { | |
public: | |
PropertyTester() | |
: threshold() | |
, increment(PropertyTester::incrementAssignSafetyGuard) | |
, isIncrementing(_isIncrementing) { | |
_isIncrementing = true; | |
} | |
Property<int> threshold; | |
ConstrainedProperty<int> increment; |
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
/* | |
|| | |
|| @author Alexander Brevig <[email protected]> | |
|| @url http://wiring.org.co/ | |
|| @contribution Brett Hagman <[email protected]> | |
|| @contribution Hernando Barragan <[email protected]> | |
|| | |
|| @description | |
|| | A public field wrapper for providing assignment safe guards | |
|| # |