Search results

  1. S

    Can't make EVE4 display work - just pale blue screen

    I tested both modes extensively on the 1280×800 BT817, drawing sinewaves, lines, text and borders. The sine curves and borders look virtually identical whether I use VERTEX_FORMAT=4 with translation or VERTEX_FORMAT=3. Given this, I’m happy to run in the extended‑range mode for my project...
  2. S

    Can't make EVE4 display work - just pale blue screen

    Thank you for looking into this further. I reviewed the BT81x programming guide and it clarifies how VERTEX_FORMAT affects coordinate range. With VERTEX_FORMAT set to 4 (the default), only 10 bits are used for the integer part of each coordinate, giving a range of –1024..+1023 in 1/16‑pixel...
  3. S

    Can't make EVE4 display work - just pale blue screen

    Hi again TFTLCDCyg , Thanks for the updated hello‑world example and your guidance on timing. I’m still running into one consistent limitation, though: on the 1280×800 BT817 panels, anything drawn with Vertex2f() beyond x = 1023 is either ignored (lines) or wraps around to the left...
  4. S

    Can't make EVE4 display work - just pale blue screen

    There is a white border along the left edge but no other borders, central text saying Hello world.
  5. S

    Can't make EVE4 display work - just pale blue screen

    error: 'IDEMCU' was not declared in this scope error: 'Parametros' was not declared in this scope
  6. S

    Can't make EVE4 display work - just pale blue screen

    On 1280×800 panels the X coordinate wraps at 1023 for lines and rectangles. GDSTx currently requires manual use of VertexTranslateX() to draw past x=1023. Would you consider adding an optional ‘BT81x extended’ mode or helper so that GD.Vertex2f() automatically applies the necessary translation...
  7. S

    Can't make EVE4 display work - just pale blue screen

    Testcard with updated library works well - see attached. If by artifacts, you mean unexpected flashes outside the area where the sprites are, then no. The Teensy gets to the 2001 counter very fast so I put a delay in the main loop to slow it down, but didn't see anything unexpected. I've...
  8. S

    Can't make EVE4 display work - just pale blue screen

    Awesome, thanks TFTLCDCyg!! I had to change the reset pin in your .h file to 3 as the Teensy doesn't have an (easily accessible) pin 24. Your Hello World example now shows Hello World. There is a white border along the left edge but no other borders. It shows 2.2 TX4... at the top left and...
  9. S

    Can't make EVE4 display work - just pale blue screen

    I'm using a Teensy 4.0 with the following pin connections: Teensy pin 2 - EVE4 pin 7 - IRQ 3 - 8 - Reset 10 - 6 - CS 11 - 5 - MOSI 12 - 4 - MISO 13 - 3 - CLK Teensy 3V3 - EVE4 pin 1 12V PSU - EVE4 pins 17, 18 - BLVDD Teensy GND - EVE4 pins 2,19,20 I can make the backlight come on and the screen...
  10. S

    OTA through Ethernet with Teensy 4.1

    Is there no simple working example for this library? OK I'm not very clever, but I would like to have a sketch to install on the master Teensy and a sketch to install on the slave Teensy and a script or whatever to run on my PC that picks up a compiled hex file from the PC, passes it to the...
  11. S

    How to get one Teensy to program others

    I want to have a master Teensy 4.1 that is programmable in the normal way and for it to connect to 8 others (4.1 or 4.0) and for the master to be able to re-program each of the others. Is this possible and are there any examples anywhere? I've done a few searches and found nothing. My...
  12. S

    Won't create 512th file first time

    Please note that it only fails the first time a file creation is attempted. If I run the sketch again, the file will always be created. So I have to run SD.format() every time or else everything appears to work after the first attempt! Did yours work correctly the first time it was run on a...
  13. S

    Won't create 512th file first time

    Thanks Kurt I added this to ensure my card was formatted before each test: SD.format(); Serial.println(F("SD card formatted")); I get this - so it still fails for me. I'm using Arduino 1.8.19 and Teensyduino 1.57 SD card is present Writing FAT ...
  14. S

    Won't create 512th file first time

    Yeah... weird that it likes pch511.dat but not Pch511.dat or pCh511.dat or pch511.daT The problem doesn't occur at multiples of 511, so for example 1022 is fine.
  15. S

    Won't create 512th file first time

    Thanks el_supremo. That's a lot more elegant :) Same problem though :(
  16. S

    Won't create 512th file first time

    Thanks el_supremo, just tried that and no better. Is it something to do with my String / toCharArray / snprintf formatting as the file name with no upper case P works?!
  17. S

    Won't create 512th file first time

    It's something to do with the Upper case letter in the String String fname = "pch" + String(k) + ".dat"; works but String fname = "Pch" + String(k) + ".dat"; doesn't
  18. S

    Won't create 512th file first time

    When I tried this a few weeks ago, using commas and no values worked ok but now it doesn't. Not sure what else I was doing differently. So even this has the same fault: if (!SD.exists(fullPathName)) { File patchFile = SD.open(fullPathName, FILE_WRITE)...
  19. S

    Won't create 512th file first time

    Like this? No change. SD.flush() won't compile and it seems to need patchFile.flush(); if (!SD.exists(fullPathName)) { File patchFile = SD.open(fullPathName, FILE_WRITE); for (int p = 0; p < 400; p++) { patchFile.print(String(initPatch[p]))...
  20. S

    Won't create 512th file first time

    This has got me puzzled! I'm trying to create 1000 files, but every time I do it the 512th file (number 511) isn't created although the rest are created ok. If I try creation immediately after detecting a file has failed, it is created correctly. The sketch is for Teensy 4.1 and creates...
  21. S

    error compiling freqmeasure in platformio #error "Unknown chip...

    I've been using #include <FreqMeasure.h> perfectly ok with a Teensy 4.1 in the Arduino environment but am now trying to switch to Platformio. In a new, empty project, I get the following error when compiling: CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html PLATFORM...
  22. S

    T4.1 can I use the unused half of a Serial pair for other I/O?

    I'm using TX2 for a midi output and don't need to use RX2 for serial input. I'm running out of pins for digital and analogue I/O... am I ok to use pin 7 for this or has Serial2.begin effectively made the pin unusable for anything other than RX2? Thanks
  23. S

    SD formatter no longer works

    Thanks, just tried the example again and it's great. First time I hadn't got the serial monitor engaged and missed the 'are you sure in triplicate?' messages and thought it wasn't working...
  24. S

    SD formatter no longer works

    Another sketch that's stopped working since updating SDfat and installing the Teensyduino 1.54-beta7 is this SD card formatter sketch. I'm using Teensy 3.6's built-in SD card with a 16GB card. I just want to delete everything on the card or to format it, whichever is easier. Can someone...
  25. S

    MTP sketch won't compile following SDfat update.

    That's fixed it! Many thanks WMXZ :)
  26. S

    MTP sketch won't compile following SDfat update.

    1.8.13 and 1.54-beta7 and Windows 64bit 10 Pro Using the sketch from Post #20. I comment out this, which I believe should stop it recreating test1.txt after I've attempted to delete it from Windows: if(sdx[0].exists(str)) sdx[0].remove(str); File...
  27. S

    MTP sketch won't compile following SDfat update.

    I don't have a T4.x but I have 140 customers who need this to work on their 3.6s. Comments therefore relate to 3.6 mtp-test.ino appears to let me delete the test1.txt file it creates (click on file, press Delete, confirmation message, file removed from explorer window) But with the section of...
  28. S

    MTP sketch won't compile following SDfat update.

    I spoke too soon... I can open and read files but not delete or create any. Your sketch is able to create its test1.txt. If I right-click in the sdio drive and attempt to create a folder, windpws says: The new folder could not be created in this location. And serial monitor says: 100c 20 1...
  29. S

    MTP sketch won't compile following SDfat update.

    Hi, my card is inserted in the reader that's part of the standard 3.6. Your sketch gives nothing at all in the serial monitor, although I can't see anything setting up the port like Serial.begin(9600); No, wait, I just made it work. With the serial monitor open, I typed some random numbers in...
  30. S

    MTP sketch won't compile following SDfat update.

    I've uninstalled Teensyduino and Arduino and reinstalled them again (1.8.13 and 1.54-beta7) and cut n pasted your sketch from the last post. It compiles fine but no explorer window opens and the PC doesn't see a Teensy drive.. This is the compiler report: C:\Program Files...
  31. S

    MTP sketch won't compile following SDfat update.

    The files are definitely there on the SD card. I just uploaded the hex file I compiled 6 months ago, explorer opened and all files are there.
  32. S

    MTP sketch won't compile following SDfat update.

    OK, now: #define SD_MOSI 11 #define SD_MISO 12 // #define SD_SCK 13 It compiles but nothing happens. I wonder if I'm still using an incorrect library somewhere... In file included from c:\program files (x86)\arduino\hardware\tools\arm\arm-none-eabi\include\sys\stat.h:9:0...
  33. S

    MTP sketch won't compile following SDfat update.

    Thanks - I made the changes you indicated. It compiles but no explorer window opens and Windows doesn't see a disk. The SD card in the Teensy 3.6 definitely has good files in it as they were visible there 2 days ago. The sketch I posted in post #9 includes SD2card card. That's all there is...
  34. S

    MTP sketch won't compile following SDfat update.

    Sorry this still doesn't work at all. My sketch from post #9 (but without the #include <SD.h> ) worked perfectly 2 days ago and now I can't make anything work. It stopped working when I updated SDfat. Then I updated to Teensyduino 1.54-beta7 and latest MTP-T4, I've removed...
  35. S

    MTP sketch won't compile following SDfat update.

    My mtp-test.ino is quite different and looks like it's for a 4.1 (I'm using 3.6). I compiled the sketch from your post and it ran but didn't 'do' anything - I'm not sure what its purpose is but I'm trying to open an explorer window and see the files on the onboard SD card. This all worked...
  36. S

    MTP sketch won't compile following SDfat update.

    OK, thanks I deleted MTP-master and now my test program and the MTP-test from the MTP_t4 folder both compile. I compiled my full sketch ok but that gave errors so I added #include <SD.h> (which it didn't need for the last 6 months!!) and it compiles ok but the explorer window that opens is...
  37. S

    MTP sketch won't compile following SDfat update.

    Sorry I must be doing something stupid here... I've removed F:\Documents\Arduino\libraries\SdFat C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Steve\AppData\Local\Arduino15\packages...
  38. S

    MTP sketch won't compile following SDfat update.

    Thanks. Sorry yes the errors were from the full sketch not the cut-down test sketch from the first post. The errors from the test sketch are: C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware...
  39. S

    MTP sketch won't compile following SDfat update.

    Thanks, I've installed 1.54-beta7 (confirmed in About) and installed MTP-T4 from Github but still get the error: In file included from F:\Documents\Arduino\LFE\Utilities\LFE_Patch_Explorer_slimtest\LFE_Patch_Explorer_slimtest.ino:1:0...
  40. S

    MTP sketch won't compile following SDfat update.

    Everything was working perfectly until the IDE offered me some library updates and I updated SDfat from 2.0.5 to 2.0.6 and now it won't compile. I've reverted to 2.0.5 and it still won't compile. I've obviously got a big gap in my understanding about how the IDE uses libraries so I'm sure the...
  41. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    I tried updating SdFat to 2.0.5 and now my other MTP.h sketch works, so I guess something in the latest update or in the latest core has fixed it. Anyway with SdFat 2.0.5, my sketch still has a few slow writes. The sketch is using SD, but did I read somewhere that that in turn uses SdFat...
  42. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    No beta, I'm using Teensyduino 1.53 with the latest core from github. I looked at the beta thread and there seemed to be lots of issues still so I've not risked it. I confess I really don't understand the different versions of SD and what I'm using. The compiler report in the first post...
  43. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    Is there a better way to pre-allocate disk space than this? Some writes (prints) still take over 50ms. Something quicker (this takes 10 seconds) or something that guarantees quick prints of 512 bytes by reducing the amount of housekeeping that SD has to do? char filename[10] = "Temp.dat"...
  44. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    Thanks KurtE. Interesting idea about pre-allocating the file.
  45. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    Right, so the answer is to not keep opening files! So I'm now opening the file once and dumping the whole 300k bytes into it as it comes in, then closing it. Then I can read in chunks from the file at my leisure using file.position() Works a treat :) Thanks Frank B.
  46. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    Thanks Frank B. Noted re block size. I believe I'm removing all files before the main loop starts so all file opens are new files, so I'm not opening an existing file. Once a file is opened, I do this and then close it, never to open it again in this sketch: File dataFile =...
  47. S

    Serial1.addMemoryForRead Buffer usage expands as I increase buffer size

    About reports: 1.8.13, Teensyduino 1.53. I just installed the latest core from github and no change. Sometimes it seems to be the writing that's filling the buffer (big jump between Before write and After write) and sometimes it's the SD.open that's filling the buffer (big jump between Before...
Back
Top