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);
62void fill(
CRGB color) {
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) {
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)