first, i'm new to C++ - my rudimentary background is in HTML/CSS/JS.
my 8yo wanted to learn to program LEDs because i have them on my motorcycle and all over the house. now we are learning C++ and Arduino.
there seems to be a communication problem with the 4.1.
the IDE doesn't show connection and i'm not seeing any settings that would change it. the orange LED is doing it's slow blinky thing. pressing the "program button" changes it to the red LED. nothing else seems to happen and the program doesn't run.
most recent verbose log; duplicates the information from previous attempts.
code that is running (with my notes, examples, and other mistakes), confirmed by running it on an UNO, which works great on the UNO.
what am i missing?
my 8yo wanted to learn to program LEDs because i have them on my motorcycle and all over the house. now we are learning C++ and Arduino.
there seems to be a communication problem with the 4.1.
the IDE doesn't show connection and i'm not seeing any settings that would change it. the orange LED is doing it's slow blinky thing. pressing the "program button" changes it to the red LED. nothing else seems to happen and the program doesn't run.
most recent verbose log; duplicates the information from previous attempts.
15:39:15.473 (loader): file changed
15:39:15.502 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:15.518 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:15.525 (post_compile 21): Begin, pid=9076, version=1.59, high-res time
15:39:15.540 (loader): remote connection 2836 opened
15:39:15.551 (post_compile 21): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
15:39:15.551 (post_compile 21): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
15:39:15.561 (loader): remote cmd from 2836: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
15:39:15.573 (loader): remote cmd from 2836: "status"
15:39:15.590 (loader): remote cmd from 2836: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
15:39:15.590 (post_compile 21): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:15.590 (post_compile 21): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
15:39:15.601 (post_compile 21): Sending command: file:teensy_start_file.ino.hex
15:39:15.601 (loader): remote cmd from 2836: "file:teensy_start_file.ino.hex"
15:39:15.622 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:15.630 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:15.652 (loader): remote cmd from 2836: "status"
15:39:15.664 (post_compile 21): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:15.664 (post_compile 21): Disconnect
15:39:15.701 (loader): remote connection 2836 closed
15:39:16.092 (post_compile 22): Begin, pid=3272, version=1.59, high-res time
15:39:16.095 (loader): remote connection 2836 opened
15:39:16.111 (post_compile 22): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
15:39:16.111 (post_compile 22): port = "COM3"
15:39:16.111 (post_compile 22): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
15:39:16.111 (loader): remote cmd from 2836: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
15:39:16.123 (loader): remote cmd from 2836: "status"
15:39:16.140 (loader): remote cmd from 2836: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
15:39:16.140 (post_compile 22): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:16.140 (post_compile 22): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
15:39:16.150 (loader): remote cmd from 2836: "file:teensy_start_file.ino.hex"
15:39:16.150 (post_compile 22): Sending command: file:teensy_start_file.ino.hex
15:39:16.171 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:16.180 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:16.205 (loader): remote cmd from 2836: "status"
15:39:16.219 (post_compile 22): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:16.219 (post_compile 22): Disconnect
15:39:16.233 (post_compile 23): Running teensy_reboot: "C:\Users\Leon\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.59.0\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=COM3" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
15:39:16.249 (loader): remote connection 2836 closed
15:39:16.271 (loader): remote connection 2836 opened
15:39:16.303 (reboot 24): Begin, pid=21764, version=1.59, high-res time
15:39:16.303 (reboot 24): location = COM3
15:39:16.303 (reboot 24): portlabel = {serial.port.label}
15:39:16.303 (reboot 24): portprotocol = {serial.port.protocol}
15:39:16.303 (reboot 24): LoadLibrary cfgmgr32 ok
15:39:16.303 (reboot 24): LoadLibrary ntdll ok
15:39:16.307 (reboot 24): nothing new, skipping HID & Ports enum
15:39:16.307 (reboot 24): usb scan found 0 devices
15:39:16.322 (loader): remote connection 3860 opened
15:39:16.339 (reboot 24): Disconnect
15:39:16.390 (loader): remote connection 3860 closed
15:39:16.411 (loader): remote connection 2836 closed
code that is running (with my notes, examples, and other mistakes), confirmed by running it on an UNO, which works great on the UNO.
///
///
/// @brief An animation that moves a single LED back and forth (Larson Scanner effect)
/// @example Cylon.ino
#include <FastLED.h>
// How many strips?
#define NUM_STRIPS 1
// How many leds in your strip?
#define NUM_LEDS_PER_STRIP 144
// what does this line do?
#define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS
// Learn what this line does.
CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
//#define DATA_PIN 13
//#define DATA_PIN 11
//#define CLOCK_PIN 11
// CHSV definitions
// red (95, 255, 255);
// green (0, 255, 255);
// blue (160, 255, 255);
// cyan (210, 255, 255);
// magenta (127, 255, 255);
// yellow (45, 255, 255);
// white (100, 0, 255);
// amber (82, 255, 255);
// active color fade options
// gold fade to red (75, 180, 90);
// cyan fade to green (225, 180, 90);
//
// opposing tails
// purple lead red to blue (127, 180, 90) - (143, 180, 90);
// Define the array of leds
//CRGB leds[NUM_LEDS];
void setup() {
while (!Serial) { }; // for Leos
Serial.begin(9600);
// For mirroring strips, all the "special" stuff happens just in setup. We
// just addLeds multiple times, once for each strip
// tell FastLED there's 144 NEOPIXEL leds on pin 13, starting at index 0 in the led array
FastLED.addLeds<WS2812, 2>(leds, 0, NUM_LEDS_PER_STRIP);
FastLED.addLeds<WS2812, 14>(leds, 0, NUM_LEDS_PER_STRIP);
// tell FastLED there's 144 NEOPIXEL leds on pin 11, starting at index 144 in the led array
//FastLED.addLeds<WS2812B, 11>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
// tell FastLED there's 60 NEOPIXEL leds on pin 4, starting at index 120 in the led array
//FastLED.addLeds<NEOPIXEL, 4>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
//FastLED.setBrightness(20);
}
void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds.nscale8(250); } }
void loop() {
{
for(int i = 0; i < NUM_LEDS; i++) // First slide the led in one direction
{
leds = CHSV(127, 180, 90); // Set color
FastLED.show(); // Show the leds
// leds = CRGB::Black; // reset to black
fadeall(); //fade
delay(20); // Wait a little bit before we loop around and do it again
}
for(int i = (NUM_LEDS)-1; i >= 0; i--) // Now go in the other direction.
{
leds = CHSV(143, 180, 90); // Set color
FastLED.show(); // Show the leds
// leds = CRGB::Black; // reset to black - no fade
fadeall(); // fade
delay(20); // Wait a little bit before we loop around and do it again
}
}
}
what am i missing?