LoginSignup
0
0

More than 1 year has passed since last update.

wemosでlcdkeypad その6

Last updated at Posted at 2023-04-16

概要

wemos d1で、lcdkeypadを使ってみた。
練習問題、やってみた。

練習問題

カタカナを表示せよ。

写真

lcd.png

asciiコード

上位4bit 0 1 2 3 4 5 6 7 8 9 A B C D E F
0xA
0xB ソ
0xC
0xD

サンプルコード

#include <LiquidCrystal.h>

LiquidCrystal lcd(0, 2, 4, 14, 12, 13);
char hello[] = { 
	0xca,
	0xdb,
	0x2d,
	0x20,
	0xdc,
	0x2d,
	0xd9,
	0xc4,
	0xde,
	0x21
};

void setup() {
	lcd.begin(16, 2);
	lcd.setCursor(0, 0);
	lcd.print(hello);
}
void loop() {
	delay(100);
}



以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0