Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months ago.
FRDM-K64F support
If you are using any compatible LCD Keypad Shield (like Dr. Robot) and FRDM-K64F, you need to power the board from "K64F USB". Otherwise, the display will not work.
For headers in FRDM-K64F, please use:
TextLCD lcd(D8, D9, D4, D5, D6, D7); // rs, e, d4-d7
Full working example:
#include "mbed.h" #include "TextLCD.h" int main() { lcd.cls(); lcd.printf("HELLO"); while(1); }
I ran into this too when trying to get an Arduino SainStudio-compatible LCD shield working. The errata says that D8 doesn't work when using "debug" mode: http://cache.freescale.com/files/32bit/doc/errata/FRDMK64F_ERRATA.pdf
I confirmed this with a bunch of LEDs. All the pins worked except D8. I however was able to get around it by rewiring D8 on the board to D10.
posted by Rob Woolley 31 Mar 2015Thanks, Rob. Very useful information.
posted by Marcelo Barros 31 Mar 2015