Search results

  1. A

    Yet another highly optimzed ILI9341 library: for T4/4.1 with diff updates and vsync !

    From the ili9488 datasheet looks like it does not support RGB565 data formatting over SPI. It uses RGB666 which would take up 3bytes per pixel (one extra byte). Some work would be needed to support that. That would make transfers slower and take up more ram. RGB565 is supported on the 8 and...
  2. A

    Yet another highly optimzed ILI9341 library: for T4/4.1 with diff updates and vsync !

    @vindar thank you very much for this library!! I'm easily getting 60 fps with diff buffers and vsync. I put together a proof of concept with the same code that runs using your library, Kurt's ILI9341_t3n, and an opengl version here...
  3. A

    Teensyduino 1.54 Beta #4

    Hi all! The 1.54b4 build worked great for us. We used it for the Pigweed remoticon workshop today: https://hackaday.io/project/175167-remoticon-give-pigweed-a-whirl Step by step guide is here: https://pigweed.googlesource.com/pigweed/sample_project/+/refs/heads/master/workshop/README.md Thank...
  4. A

    Lua interpreter example?

    Thanks for putting that together! I'm happy to help get it working on other platforms. Making it easy for users to load Lua files from other sources besides strings will be good. Like external flash or SD. I'll follow up in your repo.
  5. A

    Lua interpreter example?

    For anyone interested in this I've got an example of running Lua 5.1.5 on a Teensy 3.6 here: https://github.com/AnthonyDiGirolamo/lua-teensyduino It contains a simple repl and examples of how to run lua code from strings or the sdcard (using SdFat). An example of making your own c++ functions...
  6. A

    [?] Cross compiling bypassing completely Arduino IDE

    This has been working nicely for my T 3.2 and 3.6 projects https://github.com/apmorton/teensy-template
  7. A

    [posted] Teensy Thumb Keyboard

    Hi all! I tested the latest revision of this board and all works nicely. KiCad PCB files, Fusion360 model links, STLs and example Arduino keyboard firmware sketch available at: https://github.com/AnthonyDiGirolamo/teensy-thumb-keyboard Photos and project logs are available on the hackaday.io...
  8. A

    [posted] Teensy Thumb Keyboard

    Hi all! Here is a breakout board I put together in the shape of a thumb keyboard for the Teensy 3.2. Features Beginner friendly through hole soldering. 60 keys arranged in a familiar qwerty layout with number keys arranged in a numpad. SPI, I2C, and 2 additional GPIOs broken out. Aside from...
  9. A

    Lua interpreter example?

    Just noticed this: https://github.com/BleuLlama/TinyBasicPlus/ It's not Lua but is written with arduinos in mind. Might work out of the box on the Teensy.
  10. A

    Lua interpreter example?

    @ohthepain do you have a repo or any examples of getting it to compile?
  11. A

    I would like a 3.5 inch 480x320 touchscreen display!

    The controllers are stuck on there :-) I only made the case kinda look like a switch. Here are some pics with the case off: https://forum.pjrc.com/threads/47248-Storing-images-or-image-data-on-SD-(gaming)?p=159619&viewfull=1#post159619
  12. A

    I would like a 3.5 inch 480x320 touchscreen display!

    I've had a lot of fun with the ILI9341 displays as well. https://youtu.be/RK0VyQ14qFc that one is a 2.8 inch one from adafruit. Now I'm playing around with a gameduino3 http://excamera.com/sphinx/gameduino3/ on a teensy 3.6 which is a lot of fun. It uses a 4.3 inch screen and a FT810 which is a...
  13. A

    Debugging strategies

    Using a hardware debugger with the Teensy 3.6 would be amazing. What are the chances of being able to use the debug pads without tying pin 15 of the KL02Z (reset pin) to VSS? I don't trust my fine pitch soldering skills. I'm just a hobbyist but am familiar with GDB and have really been...
  14. A

    Teensy Pin Planner Spreadsheet

    I'm sure someone has already done this but here is a google sheet with the teensy 3.2 pins broken out into rows. https://docs.google.com/spreadsheets/d/10itCENupx40QLhzX2CuP2VxefICy6ZocX2SGuENmwmg/edit?usp=sharing I was trying to see if I could hand build a t-chordstrum since the seller is...
  15. A

    Lua interpreter example?

    I think the best option may be to use the Lua src that is part of eLua. https://github.com/elua/elua/tree/master/src/lua I wasn't able to fully get it compiled. Most of the errors were for other elua src files not in that folder.
  16. A

    New project code named: teensquitto

    Sorry, RFM95W I meant. This: https://www.adafruit.com/product/3072 Yeah was planning on using it on the teensy side.
  17. A

    New project code named: teensquitto

    This looks amazing! I've been wanting to make a board with a teensy 3.6, esp8266 and rfw95w. Not having to program both the teensy and the esp independently with separate connections would be perfect. Do you have any plans to share your library?
  18. A

    Lua interpreter example?

    I'd like to be able to run some scripts from an SD card to control application behavior. Has anyone tried this using Lua on the Teensy 3.6? I'm aware of eLua but don't want to run the whole Teensy in Lua, just application specific code. To be more specific I'd like to write little games or...
  19. A

    Touchscreen MIDI Controller

    This sounds like a great idea. I was thinking of making something along the same lines but more of a UI for making music. Like a much simpler version of sunvox. I've currently got a perf board version of a teensy 3.6, audio shield, serial flash and a Gameduino 3. The gameduino has the FT810 GPU...
  20. A

    Storing images or image data on SD (gaming)

    Why not map the analog joystick values from 0...1024 to a point on the unit circle (-1.0...1.0)? include <math.h> float xcoord = (float) x * (2/1024) - 1.0; float ycoord = (float) y * (2/1024) - 1.0; Then you can check the angle the joystick is being moved towards with float angle =...
  21. A

    Storing images or image data on SD (gaming)

    Hey Duhjoker, do you have a complete code listing someplace? On GitHub? Maybe I could upload it to my teensy with the two joy feather wings connected and see what's up. I'm having a hard time piecing together the current state of your code from individual forum posts.
  22. A

    Storing images or image data on SD (gaming)

    Up to you. You'll have to try it and see what works the best for you. Here's what I used for both on separate busses: #include "input.h" Input controller; void setup() { controller.begin(); } void loop() { controller.update_buttons(); controller.update_analog_x_axis()...
  23. A

    hybrid male/female 24 pin headers ?

    I've been enjoying using these proto boards. https://www.amazon.com/gp/aw/d/B06Y2CYYLZ/ They have double sided through holes. On one side is a horizontal trace on the other vertical. Holes can be connected to the traces with small solder blobs and or traces can be cut. It makes for very slim...
  24. A

    Storing images or image data on SD (gaming)

    That diagram isn't great. I kept the wires at right angles because of the type of prototyping board I was using. The i2c connections only connect from each joypad to the teensy i2c pins. The connection order between the three doesn't matter but it's good to keep the wires short. The white wires...
  25. A

    Storing images or image data on SD (gaming)

    Here is the diagram with charge sharing (I think). This is completely untested. Based on this description: http://blog.zakkemble.co.uk/a-lithium-battery-charger-with-load-sharing/ Parts I was thinking of using are https://www.mouser.com/productdetail/621-dmp1045u-7 for the p-type mosfet and...
  26. A

    Storing images or image data on SD (gaming)

    No problem. Here is a fritzing diagram. Since building this I've learned that you can't simultaneously charge the battery and use the teensy at the same time. Power to the voltage regulator has to be turned off while charging. I'll post another diagram with the charge sharing soon. Same...
  27. A

    Storing images or image data on SD (gaming)

    Thanks for the heads up! I did originally try the DMA approach. Here are the pins I'm using: #define TFT_DC 20 #define TFT_CS 9 #define TFT_MOSI 7 #define TFT_MISO 12 #define TFT_SCLK 14 DMA output had a lot of tearing when running in continuous mode. The main game loop on the teensy would...
  28. A

    Storing images or image data on SD (gaming)

    I really liked the idea of the joy featherwing. It definitely reduces the wiring for buttons a great deal. The onboard ATSAMD09 seems to take care of the debouncing too. Bad news for me is that it adds a good amount of delay on receiving the input (for whatever reason). You have to make three...
  29. A

    Storing images or image data on SD (gaming)

    The wiring diagram may not have the correct resistor value displayed. It was a 10mega-ohm 1/4w resistor. You can substitute anything from 1 to 10 mega-ohm values. Lower values just draw more current from the battery. Getting a resistor variety pack is a good way to go. It will last you a long while.
  30. A

    Storing images or image data on SD (gaming)

    I used 1/4w resistors and the capacitors I had on hand were these: https://moderndevice.com/product/capacitor-0-1-uf-104-bag-of-30/
  31. A

    Storing images or image data on SD (gaming)

    I mean a 10 mega ohm resistor. That and the capacitor are just for measuring the battery voltage which is above 3.3v. You could use 10k ohm resistors but it will drain the battery faster. It's all described in this article: https://jeelabs.org/2013/05/16/measuring-the-battery-without-draining-it/
  32. A

    Playing around with yet another version of ILI9341_t3 library (ILI9341_t3n)

    Thanks for the great ideas Kurt! I am already doing option C and using 8bit colors. Actually only 16 colors so far. I may make a generalized version of the 8bit approach for others looking to save ram. I looked a bit through the K66 manual and it seems like DMA is best used with contiguous...
  33. A

    Playing around with yet another version of ILI9341_t3 library (ILI9341_t3n)

    Thanks for all the work on this library KurtE! I've got one of these 2.4" displays and the 320x240 resolution is a bit hard to see on such a small screen when text isn't larger. So I was thinking I'd just have a smaller framebuffer 160x120 and output it to the screen scaled up 2x. That would...
  34. A

    Storing images or image data on SD (gaming)

    The 3.77v shown on the screen is the Teensy measuring the lipo battery using a voltage divider. The screen and teensy are all running at 3.3v (from the Pololu voltage regulator). Here is a good description on how to do that...
  35. A

    Storing images or image data on SD (gaming)

    Here's the list so far: Teensy 3.6 2x Adafruit Joy FeatherWing TFT FeatherWing - 2.4 320x240 Touchscreen Pololu 3.3V Step-Up/Step-Down Voltage Regulator S7V8F3 Adafruit Micro Lipo w/MicroUSB Jack - USB LiIon/LiPoly charger Lithium Ion Battery - 3.7v 2000mAh Perf+ 2 Prototyping board - 5 pack...
  36. A

    Storing images or image data on SD (gaming)

    Made some progress on the hardware this weekend. It still needs the audio board and a 3d printed case.
  37. A

    Teensy 3.6 DAC0/1 to Audio Board Headphone amp

    Hi all, Apologies if this is covered elsewhere in the forum, I wasn't able to find it. Is it possible to use Teensy 3.6 DACs with the audio board line-in? What connections are needed for that? I'm hoping to not use BCLK, MCLK, LRCLK as mounting the audio board on top of the teensy will be...
  38. A

    Storing images or image data on SD (gaming)

    This is a pretty good tutorial. http://www.roguebasin.com/index.php?title=Complete_roguelike_tutorial_using_C%2B%2B_and_libtcod_-_part_1:_setting_up it uses libtcod which is a game development library made for making rouge-like RPGs. It should cover some basic game code design. You can ignore...
  39. A

    Storing images or image data on SD (gaming)

    SD Card bootloader would be nice but probably not easily done. FrankB tried it here but it wasn't reliable: https://forum.pjrc.com/threads/30723-SD-Bootloader?highlight=card+bootloader
  40. A

    Storing images or image data on SD (gaming)

    My plan was to try to port most of the TIC-80 features as possible and use code from the gamebuino repo where applicable and FrankB's ILI9341 optimizations.
  41. A

    Storing images or image data on SD (gaming)

    Yeah I'm mainly doing this to get used to c++ on embedded hardware. Ok I'm just typing this as I think about it. Let's say you have a sprite sheet of 8x8 sprites stored as a 320x240 bmp on the SD card. That gives you 40x30 sprites or 1200 sprites total. Sprites can be defined as a single...
  42. A

    Storing images or image data on SD (gaming)

    What is the issue with the tilemap? Can't it be stored in progmem instead of ram? Sorry I haven't read through your code yet. I was assuming compiled games could be stored as .hex files on the sdcard (along with any bitmap files needed) and loaded on demand similar to gamebuino. Bitmaps could...
  43. A

    Storing images or image data on SD (gaming)

    Is this the function you're looking for? https://github.com/adafruit/Adafruit_ILI9341/blob/master/examples/fulltest_featherwing/fulltest_featherwing.ino#L125 I ordered a few parts and am looking to put a little handheld console together using a teensy 3.6, an ili9341 display...
  44. A

    Powering T3.2 or T3.6 from a single LiFePo4 battery

    I'm looking to do something similar. Here's what I've already ordered. My question is can I connect the output from the step-up/step-down regulator to 3.3v pin on the teensy 3.6? Is there a different pin I should use? Battery: https://www.adafruit.com/product/2011 Charger...
Back
Top