Created
February 4, 2020 08:06
-
-
Save takataka5614/04ab13048a114c7a21ff2b43513bc138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1602 LCD 文字表示 | |
#include <LiquidCrystal.h> | |
// PIN割り当ての構文は以下の通り | |
// LiquidCrystal(rs, enable, d4, d5, d6, d7) | |
// ということで、rs:7 enable:8 d4:9 d5:10 d6:11 d7:12 に割り当て | |
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); | |
void setup() { | |
// LCDの行と列を設定 | |
lcd.begin(16, 2); | |
// LCDに文字を表示 | |
lcd.print("Hellow,world!"); | |
// 2行目の表示 | |
lcd.setCursor(0, 1); | |
lcd.print("Let's enjoy!"); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment