I have some Arduino code working now using the Adafruit 128x64 LCD using their ST7565 library, and want to port it to Teensy 3. The library required two minor fixes to compile:
Now, to show a floating-point variable on the LCD with the ST7565 library, I need to convert the number into a string. I see that 'dtostrf()' is not available for Teensy 3. Should I instead use 'FloatToString()' http://arduino.cc/playground/Main/FloatToString or is there a better way?
Code:
(1) They assume they can use 'A0' as a dummy variable in their class definition, but it is already defined as a numeric constant in the T3 environment.
(2) They #include <util/delay.h> to use _delay_ms() instead of just using delay()
Now, to show a floating-point variable on the LCD with the ST7565 library, I need to convert the number into a string. I see that 'dtostrf()' is not available for Teensy 3. Should I instead use 'FloatToString()' http://arduino.cc/playground/Main/FloatToString or is there a better way?