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
from machine import Pin,PWM | |
import utime | |
MID = 1500000 | |
MIN = 1000000 | |
MAX = 2000000 | |
led = Pin(25,Pin.OUT) | |
pwm = PWM(Pin(15)) |
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
#include "FastLED.h" | |
#define LED_PIN A3 | |
#define TOTAL_LEDS 110 | |
#define BRIGHTNESS 123 | |
#define LED_TYPE WS2812B | |
#define CHUNK_SIZE_MS 300000 // 5 minute chunks (1 sentence per chunk) | |
#define CHECK_EVERY_MS 3000 // Check every 3 seconds | |
#define HOUR_MAX_LEN 6 // Maximum amount of letters an hour can have | |
#define SENTENCE_MAX_LEN 24 // Maximum amount of letters a sentence can have |
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
// Channel can be a number from 0 to 15. Typically displayed as 1 to 16. | |
byte channel = 0; | |
// ... | |
void setup() { | |
// ... | |
pinMode(18, INPUT_PULLUP); | |
pinMode(19, INPUT_PULLUP); | |
} |
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
<article> | |
<h3>Bose QuietComfort 35 II</h3> | |
<p>$217.99</p> | |
<a href="...">See all options</a> | |
<img src="..." alt="..."> | |
</article> |
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
<article itemscope itemtype="https://schema.org/Product"> | |
<h3>Bose QuietComfort 35 II</h3> | |
<p>$217.99</p> | |
<a href="...">See all options</a> | |
<img src="..." alt="..."> | |
</article> |
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
<article itemscope itemtype="https://schema.org/Product"> | |
<h3 itemprop="name">Bose QuietComfort 35 II</h3> | |
<p itemprop="offers">$217.99</p> | |
<a href="...">See all options</a> | |
<img itemprop="image" src="..." alt="..."> | |
</article> |
NewerOlder