added flickerlight
This commit is contained in:
parent
35baa17bdb
commit
839aa75db5
23
flickerlight/flickerlight.ino
Normal file
23
flickerlight/flickerlight.ino
Normal file
@ -0,0 +1,23 @@
|
||||
/* sketch of flickering light post using perlin noise
|
||||
* 2019 / otto@socialnerds.org
|
||||
* don't forget to install the FastLED lib */
|
||||
|
||||
#include <noise.h>
|
||||
|
||||
uint16_t brt = 0;
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
pinMode(11, OUTPUT);
|
||||
brt = 0;
|
||||
//Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
analogWrite(11, inoise8(brt+=20));
|
||||
|
||||
//Serial.println(inoise8(brt));
|
||||
|
||||
delay(10);
|
||||
}
|
Loading…
Reference in New Issue
Block a user