Search results

  1. Rolfdegen

    ST7796 Teensyduino support

    Hallo again.. Okay. Back to the roots. But first, a big thanks on 'h4yn0nnym0u5e' for your great support 🙏 For my touchscreen (ST7796S 480 x 320 pixels), I'm now using the standard ST7796 library from Teensyduino, version 1.60. The display works very well with this library :) What I don't...
  2. Rolfdegen

    ST7796 Teensyduino support

    I don't know if this is the right way to go. So many problems with the graphics. And the audio processing for ADSR, filters, LFOs, and other things has to work too.. I'm considering using a second Teensy 4.0 for drawing graphics and menus on the display. I plan to send commands for drawing...
  3. Rolfdegen

    ST7796 Teensyduino support

    You're right. It's just a simple example. But it should work with audio. Unfortunately, it doesn't. I have no audio with tft.useFrameBuffer(true)
  4. Rolfdegen

    ST7796 Teensyduino support

    Sorry.. I've changed it now. Screen without flickring but no sound :unsure: /* Test with Display ST7796S FrameBuffer with DMA and Audio */ #include <Arduino.h> #include <Audio.h> #include <ST7796_t3.h> // Hardware-specific library #include <SPI.h> #include <st7735_t3_font_OpenSans.h> // TFT...
  5. Rolfdegen

    ST7796 Teensyduino support

    No screen flickering without audio. ST7796S framebuffer and dma is enabled. My code /* Test with Display ST7796S FrameBuffer with DMA. Audio is disabled */ #include <Arduino.h> #include <Audio.h> #include <ST7796_t3.h> // Hardware-specific library #include <SPI.h> #include...
  6. Rolfdegen

    ST7796 Teensyduino support

    Flickering with horizontal bargraph. ST7796S framebuffer and dma is enabled. Audio is on. Automatic fading without encoder. My code /* Test with Display ST7796S FrameBuffer with DMA and Audio */ #include <Arduino.h> #include <Audio.h> #include <ST7796_t3.h> // Hardware-specific library...
  7. Rolfdegen

    ST7796 Teensyduino support

    :unsure: Small objects with a black background are flickering. Is that normal Another thing I've noticed: I can no longer disable the frame buffer by setting it to false. One more thing. If I turn off (comment out) all audio, then the screen output no longer works. Screen flickering bar //...
  8. Rolfdegen

    ST7796 Teensyduino support

    Yes. You're the best. The `mcp0.begin_I2C(0x21, &Wire1);` line was missing from the `setup()` function. Thanks a lot :)
  9. Rolfdegen

    ST7796 Teensyduino support

    Houston, i have a problem! I'm using Wire.h and the Adafruit_MCP23X17.h library for my key and encoder query. The system crashes after initializing Adafruit_MCP23X17.h. /* Test with Display ST7796S FrameBuffer with DMA and Audio */ #include <Arduino.h> #include <Audio.h> #include <ST7796_t3.h>...
  10. Rolfdegen

    ST7796 Teensyduino support

    Sorry. Its my bug. I used my old example. Your example works fine. I'll try it in my project :) Display ST7796S FrameBuffer and Audio Test
  11. Rolfdegen

    ST7796 Teensyduino support

    I copied the files DMAChannel.* and imxrt.h into the Teensy 4 cores folder under Win11 and copied the new library ST7735_t3/tree/dev/big-screen-t4 into the Lib folder of my platformIO project. Unfortunately, I'm not getting any sound.
  12. Rolfdegen

    ST7796 Teensyduino support

    Great thanks for your help. I didn't understand what I was supposed to do with the file pre-emptible DMA v2.zip :unsure:
  13. Rolfdegen

    ST7796 Teensyduino support

    The cause seems to be the `tft.useIntermediateBuffer(tft.width() * 10 * sizeof(uint16_t));` line. If I disable it, audio playback works with FrameBuffer.
  14. Rolfdegen

    ST7796 Teensyduino support

    OK. Thank you for your efforts :)
  15. Rolfdegen

    ST7796 Teensyduino support

    Which line do I need to insert 'setAsyncInterruptPriority(int level)' ? /* Test with Display ST7796S FrameBuffer with DMA and Audio */ #include <Arduino.h> #include <Audio.h> #include <ST7796_t3.h> // Hardware-specific library #include <SPI.h> #include <st7735_t3_font_OpenSans.h> // TFT...
  16. Rolfdegen

    ST7796 Teensyduino support

    Houston, we have a problem! The ST7796S frame buffer is blocking Teensy audio. If I disable the frame buffer, the audio works perfectly.
  17. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    This is my first version of Jeannie - Polyphonic DIY Synthsizer. The case for Jeannie are made by Erica Synths Link : https://github.com/rolfdegen/Jeannie-Open-source-Synthesizer
  18. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    The trick with my encoder query is that I trigger a hardware interrupt on the Teensy4.1 with every change and then read the 16-bit GPIO data register from the MCP23017 only once. From this, I can extract the encoder number and direction of movement. This reduces access to the slow I2C bus (400...
  19. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    The 3.5-inch Touch Display is a Waveshare ST7796S. It's high quality and has a built-in frame with a protective glass cover. This makes it very suitable for installation in devices. Link ...
  20. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Sorry. It's my mistake. This is the correct library https://github.com/h4yn0nnym0u5e/ST7735_t3/tree/dev/big-screen-t4
  21. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    This is an lib for ST7796S Display https://github.com/h4yn0nnym0u5e/ST7735_t3.git
  22. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Small update to the envelope menu. You can now set the curve of each envelope to linear or exponential. The Init button resets the envelope to a default value. Video
  23. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Hello everyone... I've had some time again and have continued programming the encoder query and graphics. With such a large display of 480 x 320 pixels, the graphics transmission time is a significant issue. A single-core processor like the Teensy 4.1 I'm using is fast and powerful, but it...
  24. Rolfdegen

    ST7796 Teensyduino support

    The encoders and graphics are now working very well. I've structured the image layout into sections. For each encoder, only specific graphic areas need to be updated. This reduces transmission time and improves encoder querying. Video
  25. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Thanks for the tip. The <avr/interrupt/h> is no longer necessary.
  26. Rolfdegen

    ST7796 Teensyduino support

    Small resistors of 10 - 470 ohms in series with the signal lines prevent reflections of the signal at the cable end by acting as a termination resistor and matching the impedance.
  27. Rolfdegen

    ST7796 Teensyduino support

    Yes. That's a good idea. I'll try it with 50-100 ohms. 68 ohms to MOSI and CLK works well with an SPI clock of 60MHz :) Max SPI speed is 75MHz. 80MHz is too high. The display no longer works.
  28. Rolfdegen

    ST7796 Teensyduino support

    It seems to be a problem with the connecting ore cables. It works when I press the cables. I connected cables that were 15 cm long. The plug connection is the problem!
  29. Rolfdegen

    ST7796 Teensyduino support

    "Houston, We Have a Problem!" 🫣 I'm using `useIntermediateBuffer()` and `updateScreenAsync(false, true, true)` for `fillRec()` and `fillScreen()`. The problem is: Sometimes errors occur immediately, and sometimes only after a few minutes. I deleted everything in the code that wasn't needed so...
  30. Rolfdegen

    ST7796 Teensyduino support

    Sorry. Wrong post 🫣
  31. Rolfdegen

    ST7796 Teensyduino support

    Thank you for your excellent development work. You're on my thank-you list and PCB sample :)
  32. Rolfdegen

    ST7796 Teensyduino support

    Unfortunately, without success. Still a mistake :rolleyes:
  33. Rolfdegen

    ST7796 Teensyduino support

    Sorry, I misspelled it here.. This is an error in PlotformIO Error
  34. Rolfdegen

    ST7796 Teensyduino support

    I received an error message: getChangeArea() identifier is undefined :oops:
  35. Rolfdegen

    ST7796 Teensyduino support

    I installed your current library https://github.com/h4yn0nnym0u5e/ST7735_t3/tree/dev/big-screen-t4-muxedCS. Unfortunately, my ST7796S only draw a black screen. I've tested it with and without framebuffering. I think it's an initialization problem with the ST7796S.
  36. Rolfdegen

    ST7796 Teensyduino support

    I tried to install the modified library in PlatformIO https://github.com/h4yn0nnym0u5e/ST7735_t3/tree/dev/big-screen-t4-muxedCS. But i have an include error #include <ST7796_t3.h> My mistake. It was the two-folder problem when unpacking via zip :rolleyes:
  37. Rolfdegen

    ST7796 Teensyduino support

    Sorry, incorrect function call. 🫣
  38. Rolfdegen

    ST7796 Teensyduino support

    I can't draw a drawFastHLine() and drawFastVLine() with updateScreenAsync(false, true, true). Is that correct ? // Draw envelope grid ------------------------------------------ void draw_env_grid() { uint8_t count = 4; for (size_t i = 0; i < count; i++) {...
  39. Rolfdegen

    ST7796 Teensyduino support

    Thanks. That's a good idea. I'll give it a try in the next few days. :)
  40. Rolfdegen

    ST7796 Teensyduino support

    Sorry.. I mean tft.updateScreenAsync(false,true,true) Thank you for the detailed description. You mentioned that the buffer area is always rectangular. That's a very large area for the envelope line. It also doesn't matter whether I draw a filled rectangle or a curve of the same size. The...
  41. Rolfdegen

    ST7796 Teensyduino support

    Hallo h4yn0nnym0u5e Thank you very much. Your suggestion works. But I'm still getting jumps in the encoder readings. I reduce the time it takes to display the image, I tried skipping the redraw of the black background. I draw the old envelope line in black to delete it, and then draw the new...
  42. Rolfdegen

    LVGL compatible DMA enabled LCD drivers for Teensy 4.x

    Hello I used the Library https://github.com/h4yn0nnym0u5e/ST7735_t3.git I suspect a bug in the framebuffer library with ST7796S and DMA. When I draw a small filled rectangle of 100x100 pixels with updateScreenAsyncT4(true) and DMA, it takes 45ms. When I draw the same rectangle without a...
  43. Rolfdegen

    LVGL compatible DMA enabled LCD drivers for Teensy 4.x

    Hello... I'm having a problem when I'm transferring graphic data to the ST7796S display using framebuffer and DMA, while simultaneously querying the encoder via an MCP23017 with an 400KHz clock I2C bus. The encoder query is briefly interrupted when an image is being drawn. I'm using the library...
  44. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Thanks for the tips. I'll keep working on improving the encoder routines in my Jeannie_2 project :)
  45. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Programming Encoder acceleration.. // MCP23017 Encoder query with acceleration // #include <Arduino.h> #include <Wire.h> #include <avr/interrupt.h> #include <Adafruit_MCP23X17.h> Adafruit_MCP23X17 mcp0; // Tasten 1-16 Adafruit_MCP23X17 mcp1; // Encoder // Encoder-Variable volatile uint16_t...
  46. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Video.. Encoder test
  47. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Thanks for the correction. To keep things clear, I didn't copy the entire code from my Jeannie_2 project. I just wanted to show a simple example of how to quickly and easily read encoders using an MCP23017.
  48. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Hello friends :) The Jeannie 2 is equipped with a total of seven high-quality encoders. These encoders are used for parameter input via the menu and for modulation. The Jeannie 2 is equipped with a total of seven high-quality encoders. These are used for parameter input in the menu and for...
  49. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Jeannie 2 Key function.. Boost = Bass boost on/off Level = Master volume HP Filter = High-pass filter on/off HP CUT = High-pass filter cutoff setting HP RES = High-pass filter resonance setting Panic = All notes off Shift = Toggles parameter or menu functions Load = Load a patch Save = Save a...
  50. Rolfdegen

    New Teensy 4.1 DIY Synthesizer

    Small update... I've now integrated the touchscreen function into the Jeannie 2
Back
Top