![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
エレキジャック Web版 mbedで初めてのマイコン開発 LCDを極める!<2/5> LCDに半角カナを表示するプログラムです。簡単に半角カナを表示するTipsも紹介しています。 http://www.eleki-jack.com/arm/2010/11/mbed-lcd-1.html
main.cpp@0:a934bb4870fd, 2011-03-02 (annotated)
- Committer:
- sunifu
- Date:
- Wed Mar 02 13:33:07 2011 +0000
- Revision:
- 0:a934bb4870fd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sunifu | 0:a934bb4870fd | 1 | #include "mbed.h" |
sunifu | 0:a934bb4870fd | 2 | #include "TextLCD.h" |
sunifu | 0:a934bb4870fd | 3 | |
sunifu | 0:a934bb4870fd | 4 | TextLCD lcd(p24, p26, p27, p28, p29, p30); |
sunifu | 0:a934bb4870fd | 5 | |
sunifu | 0:a934bb4870fd | 6 | |
sunifu | 0:a934bb4870fd | 7 | int main() { |
sunifu | 0:a934bb4870fd | 8 | lcd.cls(); |
sunifu | 0:a934bb4870fd | 9 | |
sunifu | 0:a934bb4870fd | 10 | lcd.locate(3,0); |
sunifu | 0:a934bb4870fd | 11 | lcd.printf("Eleki Jack!"); |
sunifu | 0:a934bb4870fd | 12 | |
sunifu | 0:a934bb4870fd | 13 | lcd.locate(5,1); |
sunifu | 0:a934bb4870fd | 14 | lcd.putc(0xB4); |
sunifu | 0:a934bb4870fd | 15 | lcd.putc(0xDA); |
sunifu | 0:a934bb4870fd | 16 | lcd.putc(0xB7); |
sunifu | 0:a934bb4870fd | 17 | lcd.putc(0xBC); |
sunifu | 0:a934bb4870fd | 18 | lcd.putc(0xDE); |
sunifu | 0:a934bb4870fd | 19 | lcd.putc(0xAC); |
sunifu | 0:a934bb4870fd | 20 | lcd.putc(0xAF); |
sunifu | 0:a934bb4870fd | 21 | lcd.putc(0xB8); |
sunifu | 0:a934bb4870fd | 22 | lcd.putc(0x21); |
sunifu | 0:a934bb4870fd | 23 | } |
sunifu | 0:a934bb4870fd | 24 | |
sunifu | 0:a934bb4870fd | 25 |