Search results

  1. Projectitis

    SPI - do we have to use _cont and _last?

    Hey KurtE - nothing to be sorry about. Thanks for your answers - I am one step closer to my goal now :) One of my objectives is to not have any external dependencies - but I have been using Adafruit's drivers as reference for my own, as well as many others (such as Bodmer). So far my only...
  2. Projectitis

    SPI - do we have to use _cont and _last?

    Thanks Paul! I'm guessing there is hardware support for parallel data transfers a different way? I'll start investigating that once I have SPI working properly :)
  3. Projectitis

    SPI - do we have to use _cont and _last?

    Ok, I believe I understand. T3.x has several pins designated as hardware CS pins, and each of these can all be encoded to PUSHR. And it's possible to use a hardware CS pin as the DC pin. Just thinking ahead about this - if you had enough hardware CS pins, could a similar technique be used to...
  4. Projectitis

    SPI - do we have to use _cont and _last?

    Awesome, thanks KurtE. I'll take some time to digest this, as it's obvious there is more I need to learn about SPI. For example, why is there a relationship between the DC and the CS pin? "...assuming at least DC pin is on a hardware CS pin..." You are correct that my base code has been taken...
  5. Projectitis

    SPI - do we have to use _cont and _last?

    Hi all, I've been writing a bunch of cross-platform SPI code, and it's a bit of a pain to have to implement _cont and _last for KINETISK based hardware. It makes the code more complex, and (depending on the situation) often adds an additional compare within a loop. It also means that in my...
  6. Projectitis

    Flickering display - SPI ILI9341 - tips

    Thanks liudr. Yes, there is a vsync available, and there are a few ILI9341 libraries that implement it by some clever people on these forums. I may try it at some stage, but DMA will be next for me. And yes, mac renders complex layered scenes one scanline at a time into a double-buffered SINGLE...
  7. Projectitis

    Flickering display - SPI ILI9341 - tips

    Thanks, nimish. If you do start using mac, please be aware that it's a work in progress (pre-alpha) and likely to still be pretty buggy :) Happy for feedback, though.
  8. Projectitis

    Flickering display - SPI ILI9341 - tips

    Hi all, This isn't actually a question, but an observation and some tips :) I've been working on an Adobe flash-like SDK for making apps and games on microprocessors. It's called mac. I've been working on it on and off for a long time. I moved from a full framebuffer to a single line buffer...
  9. Projectitis

    LED display - colors

    Thanks ecurtz. Wow, that library looks amazing! I have a spare T4 and a T4.1, but actually I've just received 10 ESP32 chips and this looks like a perfect project for that. The ESP32 has built-in bluetooth and wifi, so I don't need to worry about that.
  10. Projectitis

    LED display - colors

    Hi all, Sorry, this isn't a Teensy question, but I'm hoping someone here might be able to help. I've put together some LED panels made up of SMD2121 LEDs and have a small HC-1w Wifi controller that displays images on the screen. Everything is basically working, except the images only display...
  11. Projectitis

    Stage and display list style graphics library

    Hi all, Just thought I'd update you on recent progress on μac/mac (microcontroller app creator). It started off as a low level sprite blitting and vector shape drawing library using a framebuffer. This meant that you needed enough ram for a framebuffer (320x240 pixels @16bpp color with double...
  12. Projectitis

    Function and class templates

    False alarm. This actually works. The error was me spelling class with a capital C in one place: template <Class U> // Wrong template <class U> // Correct
  13. Projectitis

    Function and class templates

    Hi all, I have a class MyClass with templated property x. I want to use the class with float properties until the end, when I want to get a copy of it with uint16_t properties. How can I achieve this using the power of templates? I feel like I'm 99% there. The compiler doesn't like the nested...
  14. Projectitis

    c++ static member initialization (warning, hardcore :) )

    Haha! That is true. But I hate seeing that counter increase :) it's over 10% now - arrrgh :D I enjoy a challenge anyway.
  15. Projectitis

    c++ static member initialization (warning, hardcore :) )

    So if I pack my data: 200 icons with 2 parts on average each 1 byte overhead for each icon (len) Each part 4 bytes long I'll end up with around 1.8k of data. this is the minimum I can hope for. Just adding map and vector to the project add 49k of flash!! So I'll pack my data and iterate...
  16. Projectitis

    c++ static member initialization (warning, hardcore :) )

    Awesome! On both counts. Vector solves my problem here, as long as the overhead of adding the vector library isn’t bigger than assigning fixed length arrays ;) Will check tonight. There will be something like 200 icons in the list, each made up of between 1 and 3 parts.
  17. Projectitis

    c++ static member initialization (warning, hardcore :) )

    Hi all, I have these defs: enum class GUIIconType { none = 0, check, checkCircle, close, closeCircle }; typedef struct { uint32_t index; int8_t ox; int8_t oy; BitmapRotation r; } GUIIconPart; typedef struct { uint8_t len; GUIIconPart parts[]; } GUIIconParts; typedef...
  18. Projectitis

    Compiling Teensy Sketches with VisualCode (Win10)

    I use VisualTeensy for developing my libraries, so I actually *don’t* want them copied to the lib folder :) If this feature is added, could it be optional?
  19. Projectitis

    Compiling Teensy Sketches with VisualCode (Win10)

    Thanks Luni. VisualTeensy is awesome :)
  20. Projectitis

    RA8875_t4 and teensy 4.0 bumping graphics rows down on the display programmatically

    I haven't specifically used the RA8875 libraries, but I believe they do support hardware scrolling. Just looking at sumotoy's source code, it looks like you would: 1) Set the area to scroll using setScrollWindow( left, right, top, bottom ); 2) Scroll by a certain x and y amount using scroll( x...
  21. Projectitis

    Anti-grain 2D graphics library

    I know it might not look like much, but it's the start of AGG running on Teensy. So excited right now! I'm running it here on T3.6 with ILI9341 at 4x pixel scaling (for a smaller framebuffer). Just a static image right now, but watch this space :)
  22. Projectitis

    Teensy 3.6 - Looking for a complete list of all FPU accelerated math functions

    Thanks for that. I'll do some benchmarking and see what happens with various options :)
  23. Projectitis

    Teensy 3.6 - Looking for a complete list of all FPU accelerated math functions

    Sorry to bring up an old thread! This is related, though - Do you know if Teensy 3.6 has fast reciprocal? I'm doing alpha compositing which requires a divide. Not sure if the compiler would convert the divide to a multiplication by the reciprocal automatically? FYI, the equation is: OutColor...
  24. Projectitis

    3D Rendering on Teensy

    Agreed. Fantastic. I'm not always commenting, but I'm following this thread with amazement!
  25. Projectitis

    Is writeData16_last during SPI required?

    Hi all, I'm drawing arbitrary rectangles pixels to a display using SPI (just the part of the display that is updated). The position and size of the rect could be anything. From looking at reference code, most of the pixels (except the last :) ) are written using writeData16, and the last pixel...
  26. Projectitis

    3D Rendering on Teensy

    Incredible work. Very impressive!
  27. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    Some great points. I'm a big fan of abstracting the hardware layer so that the developer can just use the colour set (s)he is used to. And yep, it means porting to different displays does not generally require any changes to the actual project code :) With regard to setting colours in YCbCr or...
  28. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    Woohoo. Great work!
  29. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    Not directly related to your discussion here, but I have a 5" 480x272 RA8875 display turning up soon. 4-wire SPI. Can't wait :)
  30. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    Oh, great, sorry. catching up.
  31. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    I have an ILI9341_fonts equivalent called “PackedBDF” that attempts to remove itself from specific displays. It’s the exact format as the original font, but I’ve added support for smooth fonts (blended pixels). Feel free to take a look at that, too :) For drawing primitives, I do something...
  32. Projectitis

    Preview

    Hmm. I just learned that the Tintin copyright holders are extremely aggressive with their cease and desist/take downs of anything unauthorised to do with Tintin. Even fan games :( That means I’ll likely not be including this Tintin scene as the demo game with my lib! I bit sad :(
  33. Projectitis

    3D Rendering on Teensy

    Super impressive. I’ll be keeping an eye open for that lib when it’s released :)
  34. Projectitis

    TFT 3.5" display (320x480) ILI9488 or HXD8357D?

    For Color defines etc feel free to use any part of my code that might help you. I’ve done a lot of work on displays and graphics library stuff (most of it not on github yet). Colours based on standard set of web colours. Includes a python script for generating your own color sets in whatever...
  35. Projectitis

    Preview

    Thanks! Yes, they're mine. I'm just a dabbler in pixel art as well (painting and sketching is more my thing). I'm creating an adventure game engine on Teensy, and the aim is that this is the test game. An iconic scene from "The crab with the golden claws". The display engine is a mix between...
  36. Projectitis

    Preview

    Hehe, yeah they are more minor characters, and pretty hard to pick out when they're less than 16px tall :) - Prof. Calculus, and Allan (a bad guy).
  37. Projectitis

    Preview

    Recognise anyone :P
  38. Projectitis

    Largest 320x240 TFT display

    I didn't realise that it wouldn't have graphic RAM! I just assumed all displays would have that and would be able to 'remember' the last graphic state at the very least. I have 7 different displays already (much smaller), but they all have graphic RAM. Bummer. Well at least it was very cheap...
  39. Projectitis

    Largest 320x240 TFT display

    I've ended up buying a 5" display from a TomTom XXL 550 (display model LMS500HF05-007). The TomTom XXL 550 is an outdated GPS unit that had a large screen (100mm x 75mm approx. viewable area) albeit at a lower resolution of 320x240 (which is what I specifically want). No idea what the driver IC...
  40. Projectitis

    Type of connector

    Much appreciated!
  41. Projectitis

    Type of connector

    Hi all, Below is a photo of a replacement Nintendo Switch joypad. You can see it has a sort of flat connector with 5 wires. Does anyone know if there is a socket available that will take a ribbon like this and on the other side plug into a standard breadboard (2.54mm) header? What are the key...
  42. Projectitis

    Largest 320x240 TFT display

    I found this enormous 5.7" 320x240 display by winstar. It has a visual area of 118 x 89mm. Of course it draws around 500mA as compared to a 3.2" display of maybe 100mA. It seems 5.7" is reasonably common. Now just need to source one for a decent price :)
  43. Projectitis

    Project: libxm_t3 (XM music module player)

    Good luck. From memory it was really picky about he module you were trying to play. It happened to work well with the module I used for testing, but not others :( More work required. I suggest using Jarkko’s :)
  44. Projectitis

    Largest 320x240 TFT display

    Hi all, I have a fairly large 320x240 TFT display (see photo) of 82mm diagonal (3.2 inches). It's this unit from buydisplay.com. Does anyone know of any larger 320x240 TFT displays around? I'm specifically looking for that pixel size, though 16b or 24b colour is ok. Something around 5 inches...
  45. Projectitis

    Project: libxm_t3 (XM music module player)

    Sorry about the delay, Alain. It's a TDA1308 -based board I got off AliExpress for about $1.
  46. Projectitis

    Large indoor pixel-art display frame

    Hi Richard - Google is your friend :) Basically, it can drive up to 26,000 LEDs in full-colour. It supports slideshow-style images only (no video, but does support animated GIF and SWF - i haven't tried these) with lots of different transitions, scrolling text overlay and border effects. It can...
  47. Projectitis

    Large indoor pixel-art display frame

    Hi everyone, I ended up purchasing 6 LED displays at 64x32 pixels in size, which I'm connecting in a 3x2 matrix for a total size of 128x96 pixels. Each pixel is 5 x 5mm square (P5) and the size of each display panel is 320 x 160mm. The total art work (without a frame) is 640 x 480mm (about 25"...
  48. Projectitis

    Large indoor pixel-art display frame

    I guess I could find some very low power RGB LEDs and wire up each pixel individually. However I think I'll be dead before completing all 100,000 pixels :rolleyes: At an estimated ~15 minutes a piece, that's 25,000 hours of soldering and circuit building. Or 12 years solid of 40 hour weeks, with...
  49. Projectitis

    Optimized ILI9341 TFT Library

    @luke.saber, if bit order is the issue take a look at these bit-hacks for reversing bit order: https://graphics.stanford.edu/~seander/bithacks.html#BitReverseObvious I also have a python script as part of my tilemap code (colors.py) which I use to generate color codes for different pixel...
  50. Projectitis

    Large indoor pixel-art display frame

    Hi all, Just playing around with an idea for an indoor art piece. I'm a fan of 8-bit art (who isn't ;) ), and instead of printing and hanging on the wall, I'v been toying around with a large matrix display. I'm thinking 256x384 pixels (the image above, by Waneella, is similar at 270x405) -...
Back
Top