Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Aerokeith

Search: Search took 0.00 seconds.

  1. When I started working with LED lighting couple...

    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...
  2. Yes, I use floating point for similar...

    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...
  3. Last week I switched from FastLED to using...

    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...
  4. Replies
    4
    Views
    245

    OK, I downloaded the latest version from GitHub...

    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...
  5. Replies
    4
    Views
    245

    Thanks for the sample code! Before I saw that I...

    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...
  6. Replies
    4
    Views
    245

    A very timely post! I've been using FastLED on a...

    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...
  7. Replies
    15
    Views
    458

    Thanks! I scanned the thread and will read more...

    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).
  8. Replies
    15
    Views
    458

    Ah, yes! I had meant to go looking for something...

    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!
  9. Replies
    15
    Views
    458

    Thanks for all the suggestions. I think I have a...

    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...
  10. Replies
    15
    Views
    458

    Sorry, I manually (mis-)typed the code in the...

    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...
  11. Replies
    15
    Views
    458

    I created a completely separate program to test...

    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...
  12. Replies
    1
    Views
    184

    TimLib.h vs. Time.h

    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...
  13. Replies
    15
    Views
    458

    Mysterious Crashes with String Functions

    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...
  14. Replies
    19
    Views
    3,613

    OK, I ended up getting a super cheap (

    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...
  15. I don't have an answer to your question, but I'm...

    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...
  16. Replies
    19
    Views
    3,613

    Thanks for the suggestion, but I'm using the T4.0...

    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...
  17. Replies
    19
    Views
    3,613

    Can you recommend the easiest way to add a micro...

    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...
  18. Replies
    19
    Views
    3,613

    I just found this thread, unfortunately after...

    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...
  19. Replies
    4
    Views
    248

    ...and there it was! (after I pressed...

    ...and there it was! (after I pressed Cmd+Shift+Dot to expose hidden folders/files)
    Thanks!!
  20. Replies
    4
    Views
    248

    Firmware.hex File

    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...
  21. Replies
    2
    Views
    138

    Thanks very much, @defragster. I thought I had...

    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...
  22. Replies
    2
    Views
    138

    Teensy 4.0 Mysterious Power-Up Behavior

    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...
  23. Replies
    3
    Views
    254

    I'm using these...

    I'm using these
    with a Teensy 4 and 24V LEDs.
  24. OK, I'm feeling a bit dense. Let me try again. ...

    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();
  25. I think I understand most of what's been...

    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...
  26. Thanks for the suggestion on synchronization (and...

    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...
  27. Thanks everyone! It sounds like there are two...

    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...
  28. Hi Paul! Thanks very much for responding so...

    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...
  29. T4.0 Hardware Serial Questions: FIFOs & Buffer Sizes, etc.

    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...
Results 1 to 29 of 29