14#if !defined(__IMXRT1062__)
15#include "platforms/sketch_fake.hpp"
19#define FASTLED_USES_OBJECTFLED
32#define NUM_LEDS1 (22 * 22)
37void wait_for_serial(uint32_t timeout = 3000) {
38 uint32_t end_timeout = millis();
39 while (!Serial && end_timeout > millis()) {}
42void print_startup_info() {
43 Serial.println(
"Start");
44 Serial.print(
"*********************************************\n");
45 Serial.print(
"* TeensyParallel.ino *\n");
46 Serial.print(
"*********************************************\n");
48 "CPU speed: %d MHz Temp: %.1f C %.1f F Serial baud: %.1f MHz\n",
49 F_CPU_ACTUAL / 1000000, tempmonGetTemp(),
50 tempmonGetTemp() * 9.0 / 5.0 + 32, 800000 * 1.6 / 1000000.0);
55 wait_for_serial(3000);
66 for (
int i = 0; i < NUM_LEDS1; i++) {
69 for (
int i = 0; i < NUM_LEDS2; i++) {
74void blink(
CRGB color,
int times,
int delay_ms = 250) {
75 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)