5#if !defined(__IMXRT1062__)
6#include "platforms/sketch_fake.hpp"
9#define FASTLED_USES_OBJECTFLED
20#define NUM_LEDS1 (22 * 22)
25void wait_for_serial() {
26 uint32_t end_timeout = millis() + 3000;
27 while (!Serial && end_timeout > millis()) {}
30void print_startup_info() {
31 Serial.println(
"Start");
32 Serial.print(
"*********************************************\n");
33 Serial.print(
"* TeensyParallel.ino *\n");
34 Serial.print(
"*********************************************\n");
36 "CPU speed: %d MHz Temp: %.1f C %.1f F Serial baud: %.1f MHz\n",
37 F_CPU_ACTUAL / 1000000, tempmonGetTemp(),
38 tempmonGetTemp() * 9.0 / 5.0 + 32, 800000 * 1.6 / 1000000.0);
41void dump_last_crash() {
43 Serial.println(
"CrashReport:");
44 Serial.println(CrashReport);
62 for (
int i = 0; i < NUM_LEDS1; i++) {
65 for (
int i = 0; i < NUM_LEDS2; i++) {
70void blink(
CRGB color,
int times,
int delay_ms = 250) {
71 for (
int i = 0; i < times; ++i) {
void blink(CRGB color, int times)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS 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)
@ 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)