Dawnmist
Well-known member
I'm working on a personal project to do a programmable right-handed game keyboard (I use the mouse in my left hand), which loads/saves keymaps from/to SD card and outputs the current keymap & menus to change it to a tft screen (using UTFT, SdFat and IniFile libraries). My first version is working nicely using a teensy 2++, GLCD and saving to eeprom - but I keep losing the keymaps when I make incompatible changes *grins*.
I'm running into issues on the Teensy 3 with several c string functions being disabled/not available at compile time. Things like sprintf, snprintf, strcasecmp, etc are being commented out by defines while being built (according to string.h and stdio.h, they're only available if the compilation is not defined as Strict ANSI or portable).
Given that this is for personal use, I only need to use standard ASCII characters (not Unicode). Is there a reason other than lack of wide-character support for them being disabled for the Teensy 3 build? If not, is there a way to renable these functions - or should I be looking at replacing them entirely?
Particularly when it comes to combining "string+int+string" information on the tft it's easier to do if the string buffer is prepared in advance, but I wasn't sure about the memory overhead of using String instead of char[] buffers. I was a little surprised to find that this stuff seems to be disabled by default, and wasn't sure how (or whether) to re-enable it or whether I should move to PString or String instead.
I'm running into issues on the Teensy 3 with several c string functions being disabled/not available at compile time. Things like sprintf, snprintf, strcasecmp, etc are being commented out by defines while being built (according to string.h and stdio.h, they're only available if the compilation is not defined as Strict ANSI or portable).
Given that this is for personal use, I only need to use standard ASCII characters (not Unicode). Is there a reason other than lack of wide-character support for them being disabled for the Teensy 3 build? If not, is there a way to renable these functions - or should I be looking at replacing them entirely?
Particularly when it comes to combining "string+int+string" information on the tft it's easier to do if the string buffer is prepared in advance, but I wasn't sure about the memory overhead of using String instead of char[] buffers. I was a little surprised to find that this stuff seems to be disabled by default, and wasn't sure how (or whether) to re-enable it or whether I should move to PString or String instead.