14#if !defined(__IMXRT1062__)
20#define FASTLED_USES_OBJECTFLED
33#define NUM_LEDS1 (22 * 22)
38void wait_for_serial(uint32_t timeout = 3000) {
39 uint32_t end_timeout = millis();
40 while (!Serial && end_timeout > millis()) {}
43void print_startup_info() {
44 Serial.println(
"Start");
45 Serial.print(
"*********************************************\n");
46 Serial.print(
"* TeensyParallel.ino *\n");
47 Serial.print(
"*********************************************\n");
49 "CPU speed: %d MHz Temp: %.1f C %.1f F Serial baud: %.1f MHz\n",
50 F_CPU_ACTUAL / 1000000, tempmonGetTemp(),
51 tempmonGetTemp() * 9.0 / 5.0 + 32, 800000 * 1.6 / 1000000.0);
56 wait_for_serial(3000);
66void fill(
CRGB color) {
67 for (
int i = 0; i < NUM_LEDS1; i++) {
70 for (
int i = 0; i < NUM_LEDS2; i++) {
75void blink(
CRGB color,
int times,
int delay_ms = 250) {
76 for (
int i = 0; i < times; ++i) {
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Base definition for an LED controller.
@ GRB
Green, Red, Blue (0102)
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)