5#if !defined(__IMXRT1062__)
10#define FASTLED_USES_OBJECTFLED
21#define NUM_LEDS1 (22 * 22)
26void wait_for_serial() {
27 uint32_t end_timeout = millis() + 3000;
28 while (!Serial && end_timeout > millis()) {}
31void print_startup_info() {
32 Serial.println(
"Start");
33 Serial.print(
"*********************************************\n");
34 Serial.print(
"* TeensyParallel.ino *\n");
35 Serial.print(
"*********************************************\n");
37 "CPU speed: %d MHz Temp: %.1f C %.1f F Serial baud: %.1f MHz\n",
38 F_CPU_ACTUAL / 1000000, tempmonGetTemp(),
39 tempmonGetTemp() * 9.0 / 5.0 + 32, 800000 * 1.6 / 1000000.0);
42void dump_last_crash() {
44 Serial.println(
"CrashReport:");
45 Serial.println(CrashReport);
63 for (
int i = 0; i < NUM_LEDS1; i++) {
66 for (
int i = 0; i < NUM_LEDS2; i++) {
71void blink(
CRGB color,
int times,
int delay_ms = 250) {
72 for (
int i = 0; i < times; ++i) {
void blink(CRGB color, int times)
CRGB leds2[lengths[RedStrip]]
CRGB leds1[lengths[GreenStrip]]
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
CLEDController & setRgbw(const Rgbw &arg=RgbwDefault::value())
Base definition for an LED controller.
@ GRB
Green, Red, Blue (0102)
Implements a simple red square effect for 2D LED grids.
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)