S
Reaction score
69

Latest activity Postings About

    • S
      shawn reacted to vindar's post in the thread tgx: a 2D/3D graphics library for Teensy. with Like Like.
      Hi, I am just bumping this thread to let you know that I updated the library (by merging the "improved-drawing-primitives" branch)... There are a bunch of new features: Rewrote most of the 2D drawing methods (implying some API breaking...
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #3.
      I did Tools->Board->Teensy->Teensy 4.1 because I don't have anything plugged in, and once I changed the board, it seems to work
    • S
      shawn replied to the thread RGBW and Teensy 4.1.
      Yes.
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #3.
      Installed this beta (0.60.3) and then restarted the IDE. macOS 14.7, Arduino IDE 2.3.3. When I try to execute any of the Teensy Secute commands via cmd-shift-p, I see this error message: "Could not find teensy_secure utility. Please use Boards...
    • S
      shawn reacted to PaulStoffregen's post in the thread Teensy 4.1 commercial product with Like Like.
      On the Teensy 4.1 page, scroll down to Technical Information and look for the RoHS and REACH documents.
    • S
      shawn replied to the thread Updated 8x8 and 16x16 audio.
      Note that with QNEthernet, you can call Ethernet.loop() more often than relying on yield() (which is called after every execution of the main loop) or delay() (which calls yield()) by themselves, to move the stack forward more often, should you...
    • S
      shawn reacted to MrCanvas's post in the thread SidMaster 2k, updated with Love Love.
      Time to satisfy your retro cravings! I revisited this old project recently and did some well needed updates. It is a polysynth based on (real) commodore SID's. It accepts up to four of them and supports both 8580 and 6581 variants. Control is...
    • S
      The DMA hardware uses a 15 bit number for total count, where 0 actually means zero. So the maximum number of bits is 32767. To transmit to 1024 RGBW LEDs requiring 32 bits each, you would need to configure for 32768.
    • S
      Why is the limit for RGBW LEDs 1023 and not 1024?
    • S
      Thank you for the feedback but I think you missunderstand me. The problem with Teensy isn't its capabilities, it's the lack of certificates (CE being one). Look at the list I provided REACH, FCC etc. are important things to have if we (our...
    • S
      shawn reacted to KurtE's post in the thread SD.remove() with Teensy 4.1 with Like Like.
      Might help to have more context, like source code? (Files example? ) How are you building it, on what, things like assuming Arduino, which version? What version of Teensyduino? Was SD,begin called? did it succeed? Are you using the SD on...
    • S
      shawn replied to the thread Teensy 4.1 commercial product.
      Question: What is “CE”? (Update: I think it’s that European conformance thing?) The Teensy is great for commercial products. It’s robust and well-designed. I think of it as occupying two possible levels: 1. Providing a design where you build the...
    • S
      shawn replied to the thread Ethernet audio library.
      Those are the same. sei() is defined to be __enable_irq() and cli() is defined to be __disable_irq(). Also interrupts() and noInterrupts() are defined to be those too.
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #2.
      I noticed that the Teensy loader app is missing the top buttons. macOS 14.7. Picture attached. Note that nothing happens when I click on the ">>" image on the right.
      • Screenshot 2024-10-02 at 8.56.07 PM.png
    • S
      shawn replied to the thread Teensy with arduino-cli and make.
      Quite the opposite. No anger here. I don’t feel like you ignored anything. My statement that I’m glad you got @defragster’s suggestion working first was sincere. :) In fact, his suggestion is actually preferred, and I’m glad he brought it up...
    • S
      shawn replied to the thread Teensy with arduino-cli and make.
      I’m glad you got it working for your needs. I was just about to respond that @defragster’s approach should be tried first, and then, if you need further options that aren’t supplied there (eg. library-specific options), the approach I outline...
    • S
      shawn reacted to defragster's post in the thread Teensy with arduino-cli and make with Like Like.
      I have built with a Windows batch file: set model=teensy41 set speed=600 set opt=o2std set usb=serial Setting those things up from another batch file allows each to be selected. Then the fully formed FQBN is assembled as follows: set...
    • S
      shawn replied to the thread Teensy with arduino-cli and make.
      The “Arduino way” is to add any changes to the platform.local.txt file. Unfortunately, the Teensy platform doesn’t support this because its platform.txt file doesn’t include support for overrides in platform.local.txt. So the next best thing is...
    • S
      shawn reacted to PaulStoffregen's post in the thread Teensyduino 1.60 Beta #2 with Like Like.
      Another exciting moment on my 4th day of Typescript programming! Actually generated the fuse write code in IDE 2.3.2.
    • S
      shawn reacted to PaulStoffregen's post in the thread Teensyduino 1.60 Beta #2 with Love Love.
      Sorry, didn't see this question earlier. I mostly started from the conversation on issue #58, especially this message from Sep 20, 2023. which explains Arduino IDE 2.x is based on Theia is really just VS code internally. These are the links...
    • S
      shawn reacted to PaulStoffregen's post in the thread Teensyduino 1.60 Beta #2 with Like Like.
      Exciting moment here, using dankeboy36's suggestion, I was able to get a new window to open with code from a temporary folder! Arduino IDE is able to compile and upload it (unlike my failed attempt with vscode.TextDocumentContentProvider). Now...
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #2.
      At first I thought “oh, yay, VS Code and PlatformIO.” Then, when you made a subsequent post about what you developed so far, I realized that you meant the Arduino IDE does VS Code-style plugins. I didn’t know that. I’m curious, what resources...
    • S
      Try commenting out any file access (eg. fopen()).
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #2.
      Here's a very minor fix PR: 1. Make some minor fixes to CrashReport CFSR messages #716
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #2.
      So no more IDE-based secure Teensy programming on the Mac? I believe the tool for this is a Java program? Time to dive in… Update: It seems like the teensy_secure program can do these tasks.
    • S
      This is all great, and kudos as ever to @shawn for being a responsive library maintainer who works with "his" users to provide an incredibly high level of support for all abilities. For users at the level of @joepasquariello, who are prepared...
    • S
      So I've made some latest changes to the QNEthernet library. There's a new QNETHERNET_DO_LOOP_IN_YIELD configuration macro. I'd love all'y'all's thoughts on it, including what's in the README. Suggestions and improvements welcome. (Simply search...
    • S
      The whole phrase looks like it was (may have been edited, I'm not sure): "it only hooks into yield(), after all, and that only happens at loop() end, delay() and calling yield() directly, right? Well, wrong, of course but ... documentation? Hell no."
    • S
      shawn reacted to palmerr's post in the thread Ethernet audio library with Like Like.
      I can try that with some semaphores in the update() code to provide protection against both routines trying to manipulate queue at the same time. Something in the main loop isn't pretty, but EventResponder looks promising to resolve that. Extra...
    • S
      shawn replied to the thread Ethernet audio library.
      See QNEthernet.cpp for code that uses EventResponder, as an example. You may have discovered that you need to call triggerEvent() on the argument. That makes it get called again. Note that using EventResponder with yield() is almost equivalent...
    • S
      No. That is a misconception. yield() is a common OS-style API function that is free to be called by any code, and anything connected to an EventResponder should be treated with the same respect as an ISR - in fact this would probably be more...
    • S
      Sure no problem. I know a piece of code is canonical, but there are a lot of moving parts so I'll try in words to begin with: EventResponder hook set up to read audio data from SD card when triggered audio library update() [interrupt] triggers...
    • S
      Yes, I was referring to EventResponders, not uses of yield().
    • S
      My view of yield() is that it could be called at any time from anywhere, including multiple times. Or were you referring to yield() calls being called in a reentrant manner, I.e. someone calls yield(), and then somewhere along the line, inside...
    • S
      I think the issue is that libraries can do this, not necessarily user code, meaning there’s less control. Your point stands, however, for library authors, especially; they need to take extra care and add extra documentation.
    • S
      For the record, the QNEthernet library doesn’t have to use EventResponder or hook into yield(). In fact, that’s how it started out. The only thing that you need is to call Ethernet.loop() regularly. (And comment out the attachLoopToYield() call.)...
    • S
      shawn reacted to PaulStoffregen's post in the thread Sampling voltage with Teensy 4.1 with Like Like.
      Indeed many years ago I tested almost every breadboard I could find, about 40 different models (but many were probably the same with different packaging). BPS and Twin Industries were by far the best quality. That's why PJRC sells the BPS...
    • S
      When you want to, removing a Teensy from a prototyping board can be a challenge. There is a temptation to lift it just from one end. DO NOT DO THIS. The Teensy will likely give way quickly and pins will probably be bent. As a better solution for...
    • S
      shawn replied to the thread Ethernet audio library.
      Just to be clear, I wasn’t suggesting doing audio updating from the main loop, just sending things over Ethernet from the main loop, where the things you’re sending are buffered in the interrupt. This is almost equivalent to hooking into yield()...
    • S
      @h4yn0nnym0u5e would you then advocate for having a user call SomeLibrary.loop() inside their main program loop, plus anywhere they’d wait, instead of hooking into yield (whatever the mechanism)? (Eg. QNEthernet)
    • S
      shawn replied to the thread Ethernet audio library.
      Better yet, in the interrupt, append the data you need to send to a concurrent-safe or “mutexed” queue/buffer and then in your main loop (or in a function called from your main loop), send the data you need from the queue.
    • S
      shawn replied to the thread Ethernet audio library.
      The library isn’t designed to be called from within interrupts. The alternative is to set a (volatile) flag in the interrupt and then check that flag to do the operation from your main loop somewhere (and then clear the flag), i.e. not in an...
    • S
      Yes, that's right. I first modified the example to do what I wanted my simple TCP server to do, and then tried to merge that functionality into the multi-tasking application, and that's when I ran into the issue related to yield().
    • S
      I see. I was confused when you said, "since it did what I wanted." Did you mean when you didn't use the cooperative OS features?
    • S
      Can you clarify: which example did what you wanted? Did it call one of the waiting functions? If so and it worked, what exactly didn’t work for you before? My impression was that something actually didn’t work for you, as opposed to...
    • S
      I think what happened is a tried an example, and since it did what I wanted, I never looked beyond it. When I download your modified code, I'll try the non-blocking functions. Thanks very much!
    • S
      My view is that if you’re advanced enough to do your own cooperative task switching, you don’t actually need to use those functions in QNEthernet that use yield(). I don’t mind the change because, in theory, someone could have overridden yield()...
    • S
      @joepasquariello The latest two commits in the QNEthernet library repo should address your needs. (96db12b1d and 9c572384f: https://github.com/ssilverman/QNEthernet/commits/9c572384f2998dc80883d55c02f8b23480868cfc/) But I have a question: Why...
    • S
      shawn replied to the thread Teensyduino 1.60 Beta #1.
      I’m on macOS 14.7, hardware is one of the last Intel hardware ones, 2020.
    • S
      I wonder if EventResponder::attachImmediate is similar to this?
  • Loading…
  • Loading…
Back
Top