From 839aa75db547ea44c4cdbaf5eafbcac247f85347 Mon Sep 17 00:00:00 2001 From: ottona Date: Sun, 6 Feb 2022 17:30:27 +0100 Subject: [PATCH] added flickerlight --- flickerlight/flickerlight.ino | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flickerlight/flickerlight.ino diff --git a/flickerlight/flickerlight.ino b/flickerlight/flickerlight.ino new file mode 100644 index 0000000..79baf1c --- /dev/null +++ b/flickerlight/flickerlight.ino @@ -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 + +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); +}