24 lines
444 B
Arduino
24 lines
444 B
Arduino
|
/* 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);
|
||
|
}
|