CircuitPython seems to work well on a Teensy 4. They have a Teensy-appears-as-a-folder-where-you-can-drag-stuff-to scheme that you might be able to figure out.
See this post for a fix for a bug in inplace_function.h (including an example program that shows the error):
https://forum.pjrc.com/threads/70986-Lightweight-C-callbacks?p=331086&viewfull=1#post331086
In short,...
There's a bug in inplace_function.h when using a function that doesn't have `void` as its return type. This is because is declared to do nothing. Instead, it should be defined to something that doesn't return, for...
Do you mean with specific predefined classes such as `Wire` and `Serial4`? Or do you mean in general where using static instances will be pre-initialized in general?
If the first, I haven't yet looked too closely,...
Here's one way to use a static object and ensure it's initialized when you need it without using dynamic creation. It's a singleton pattern. The internal static object doesn't get initialized until it's first used, but...
@bicycleguy thank you for the compliment; it means a lot. I use it extensively myself and most of the features are dictated by my own needs.
I'm curious, do you have a wish list or suggestions for the current library...
I’m thinking of doing a mini workshop on properly generating true random and pseudo-random numbers.
Topics:
1. Entropy sources
2. Random distributions vs. random generators
3. C++ random and pseudo-random features...
I’d like to suggest posting a complete Teensy code example (the code above isn’t a complete program) plus any instructions for running the server end of things to interact with the Teensy. This way, if someone chooses...
I briefly looked into adding this to QNEthernet a little while ago and it shouldn't be too difficult. You could either adapt/wrap lwIP's pre-made ping "app", or add some ICMP layer to the library API. I might or might...
I think the your workflow could be improved. It feels like you’re implying you need to use the security program upload frequently, which tells me you’re probably locking and programming lots of Teensys.
Are you aware...
I use both. 1.8.19 when I need to do lockable Teensy stuff (just those external programs) and 2.1.1 for everything else. (Well, my main IDE is actually VSCode plus PlatformIO. I use 2.1.1 to verify things sometimes.) I...
It doesn't sound like you're actually using Arduino IDE 2.1.1. The version shows 2.1.1 for me. Remember, there's two ways to run Teensy things with Arduino. The first is to download that "Teensyduino" release. That's a...
Another thought: are you running out of stack space? I’m wondering what the necessity is for creating those char arrays. Try using the `topic` and `data` char arrays directly using `c_str()` instead of allocating those...
Couple cursory questions:
1. Have you tried posting an issue at the library’s repository? (https://github.com/knolleary/pubsubclient)
2. Do you feel like trying the QNEthernet library instead of NativeEthernet to see...
Sometimes also the pixel data can be burst-y. That’s why I added a “receive queue” feature for the `EthernetUDP` class. Data that comes in all at once sometimes can’t be processed all at once, and unless there’s some...
I use PlatformIO to develop my stuff and make some use of its built-in Unity framework support. For example, see the test folder here: https://github.com/ssilverman/QNEthernet
I just released v0.24.0. The changes:
##
### Added
* The new `QNETHERNET_MEMORY_IN_RAM1` configuration macro indicates that
lwIP-declared memory should go into RAM1.
* New...
I got the Teensy 4 version of FastLED’s controller working a little while back. It’s inside the main distribution; see the `COctoWS2811Controller` class in src/platforms/arm/mxrt1062/octows2811_controller.h. That's...
It could be a long time; technically no limit (it’s actually a reset condition, so it’s valid if it stays low). But if it did have a limit, where were you going with that thought? A second, stopping condition, timer or...
Hello all you FlexIO people. I've started diving into this, and I believe I understand about half of how to use this subsystem.
I could use some help because I can't quite figure out how to accomplish a certain task....