Paul,
Teensy-LC is now working with openGLCD on the GLCD test bed.
It worked "out of the box", with the latest code; however, because the board
was unknown, the library uses defaults, and the default pins are different pinout
from what Teensy 3 and 3.1 used with the GLCD test bed.
I've added support for this board to use the same pinout as the Teensy 3 and 3.1 since they
are digital pin pinout compatible.
I have a question and need a bit of help in one area.
Currently I went back to use a h/w level shifter.
My question is can the Teensy-LC use the 10k series resistors to simply
limit the back current when connecting 5v outputs to the Teensy 3v input pins like on Teensy 3.0 or will it require a real level shifter?
Also, the nanosecond delay code you gave me doesn't work on the processor used on the Teensy-LC
so the code is slowed down because it has to use Arduino API functions for its delays which
are considerably longer than necessary.
This is the code that breaks:
Code:
static __inline__ void /* exactly 4 cycles/loop, max 2**32 loops */
_delay_loop_2_x( uint32_t __n )
{ /* cycles per loop */
__asm__ volatile ( /* __n..one zero */
"L_%=__delay_loop_2_x:" "\n\t"
"subs %0, #1" "\n\t"
// "nop" "\n\t"
"bne L_%=__delay_loop_2_x" "\n"
: "+r" (__n) :
);
}
The assembler complains with this error
Error: instruction not supported in Thumb16 mode -- `subs r3,#1'
I don't know gcc/gas arm syntax or I'd fix it myself.
--- bill