Thanks! That looks like a possibility, but will probably require more adaptation (and time) than I can afford to invest right now. I was hoping for something more "turn-key".
Type: Posts; User: Aerokeith
Thanks! That looks like a possibility, but will probably require more adaptation (and time) than I can afford to invest right now. I was hoping for something more "turn-key".
Is it possible to load code (in the form of a hex file) into a T4 from an SD card and have the T4 behave as if the code were loaded through the USB interface? I'm using a custom PCB that includes a...
When I started working with LED lighting couple of years ago I read several articles and posts that explain that HSV was simpler and more intuitive than RGB in a number of situations. It's easy to...
Yes, I use floating point for similar computations, but generally store "steady state" HSV values in 8.8 fixed-point format. Other than that I decided to focus more on numerical accuracy and...
Last week I switched from FastLED to using OctoWS2811 for the LED serial interface (thanks to @spolsky and others), and it definitely solved my problems with interrupts being missed. Since I wasn't...
OK, I downloaded the latest version from GitHub and figured out how to overwrite the old version in the PlatformIO Projects/<myproject>/.pio/libdeps/teensy40/OctoWS2811 folder.
That fixed the...
Thanks for the sample code! Before I saw that I tried the "rainbow" example and got several compiler errors, like:
.pio/libdeps/teensy40/OctoWS2811/OctoWS2811.cpp: In member function 'void...
A very timely post! I've been using FastLED on a Teensy 4.0 with parallel output (5 pins), and everything has been working fine...until I started using Serial1 to communicate with another Teensy. I...
Thanks! I scanned the thread and will read more carefully later. Not sure if it only works with Visual Micro (and I'm not really sure what that is).
Ah, yes! I had meant to go looking for something like that (which I assumed must exist) but I never got around to it. Thanks for the reminder!
Thanks for all the suggestions. I think I have a handle on this now. The thing that threw me was that crashes prevent the output of serial monitor messages that were generated BEFORE the offending...
Sorry, I manually (mis-)typed the code in the original snippet; the actual test code used "Test string" not "Test String". The program produced the following (correct) output:
Level 0: string 0...
I created a completely separate program to test strstr() when called several levels deep (see below) and of course, it works fine (ugh!). I included a 300-byte local variable buffer at each level to...
After a recent update to PlatformIO, I started getting this compiler warning:
I'm not using either of these libraries, but it looks like Time.h is being referenced by SDFat; am I reading that...
I've been going crazy trying to debug a problem with using some of the standard string functions, particularly strstr() and strchr(). When I use these under certain conditions (see below), my program...
OK, I ended up getting a super cheap (<$2) Micro SD adapter and a super cheap (16GB, $6) SD card and hand wired the adapter to the T4 SPI pins (photo).
Got it up and running today using the SdFat...
I don't have an answer to your question, but I'm curious how you like using the TLC5940. I thought about using it, but then I found the TLC5947 which seemed to be a better fit for me. I built a...
Thanks for the suggestion, but I'm using the T4.0 mounted to a custom PCB without a lot of spare real estate. Even for the boards I haven't assembled yet, there wouldn't be room for this breakout...
Can you recommend the easiest way to add a micro SD adapter to a T4? It looks like I could use the small PJRC adapter with discrete wires, and it wasn't immediately obvious that the larger adapter is...
I just found this thread, unfortunately after I've finished developing my hardware around the T4 based on some incorrect assumptions about this line in the tech specs:
2048K Flash (64K reserved for...
...and there it was! (after I pressed Cmd+Shift+Dot to expose hidden folders/files)
Thanks!!
I'm using VS Code/PlatformIO on MacOS 10.15.5 to develop code for a Teensy 4.0. I'd like to be able to generate a hex-format object file and send it to a collaborator so that he can download it to a...
Thanks very much, @defragster. I thought I had considered everything you mentioned, but I didn't check carefully enough. I have a switch on the Power On/Off pin, and due to a discrepancy between the...
I've used several T4.0 boards over the past few months with no issues, but the new one I just received is behaving mysteriously. On power-up, the LED flashes three times and then stops (about 4...
I'm using these
with a Teensy 4 and 24V LEDs.
OK, I'm feeling a bit dense. Let me try again.
As in the examples, I'm currently using:
setSyncProvider(getTeensy3Time);
and
time_t getTeensy3Time()
{
return Teensy3Clock.get();
I think I understand most of what's been discussed in this thread, but I'd like to ask a couple of questions. I've got the code working to read the RTC, and I see that the time is one hour behind, as...
Thanks for the suggestion on synchronization (and on the buffer size). Sounds like the interrupt approach would work for me, but I don't need that level of timing accuracy. Also, the slaves will...
Thanks everyone! It sounds like there are two different methods to expand the RX buffer size:
1. #define SERIAL1_RX_BUFFER_SIZE <Size> before the #include "hardwareserial1.h"
2. Call...
Hi Paul! Thanks very much for responding so quickly. I understand that you're very busy, so hopefully some other forum members can fill in the rest of the details.
4-byte FIFO's are good as long...
Hi! I have some noob-ish questions about the Teensy 4.0 UARTS and the associated hardwareserial.cpp code.
HW Configuration
Multiple, identical custom PCBs using Teensy 4.0 as an MCU module, all...