FRDM-KL25Z with Arduino LCD KeyPad Shield (SKU: DFR0009).
FRDM-KL25Z with Arduino LCD KeyPad Shield (SKU: DFR0009).
/*** * --------------------------------------------- * Arduino LCD KeyPad Shield (SKU: DFR0009) * --------------------------------------------- * - Button : a0 -> PTB0 * right : < 0x0100 * up : < 0x5400 * down : < 0xa500 * left : < 0xfd00 * select : ??? * --------------------------------------------- * - DB4 : d4 -> PTA4 * - DB5 : d5 -> PTA5 * - DB6 : d6 -> PTC8 * - DB7 : d7 -> PTC9 * - RS : d8 -> PTA13 * - Enable : d9 -> PTD5 * - Backlight Control : d10 -> PTD0 * --------------------------------------------- * - http://www.dfrobot.com/wiki/index.php/Arduino_LCD_KeyPad_Shield_(SKU:_DFR0009) * - http://www.dfrobot.com/index.php?route=product/product&keyword=DFR0009&category_id=0&description=1&model=1&product_id=51 * - http://www.amazon.co.jp/dp/B00ACCN148 * - http://akizukidenshi.com/catalog/g/gM-07029/ ***/
Diff: main.cpp
- Revision:
- 2:796f7d90beac
- Parent:
- 1:c04ae2fc1a27
diff -r c04ae2fc1a27 -r 796f7d90beac main.cpp --- a/main.cpp Fri Mar 14 14:17:00 2014 +0000 +++ b/main.cpp Fri Mar 14 14:20:54 2014 +0000 @@ -27,7 +27,7 @@ * - DB7 : d7 -> ptc9 * - RS : d8 -> pta13 * - Enable : d9 -> ptd5 - * - Backlit Control : d10 -> ptd0 + * - Backlight Control : d10 -> ptd0 * --------------------------------------------- * - http://www.dfrobot.com/wiki/index.php/Arduino_LCD_KeyPad_Shield_(SKU:_DFR0009) * - http://www.dfrobot.com/index.php?route=product/product&keyword=DFR0009&category_id=0&description=1&model=1&product_id=51 @@ -42,10 +42,10 @@ backlight = 1; // ON: 1, OFF: 0 lcd.cls(); lcd.printf("HELLO"); + wait(0.5); #endif while (1) { - wait(0.3); myled = (myled == 1) ? 0 : 1; count = count + 1; @@ -61,5 +61,6 @@ lcd.locate(0,1); lcd.printf("BUTTON : %04x", value); // button value #endif + wait(0.2); } }