This file contains hidden or 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の行と列を設定 |
This file contains hidden or 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
| void setup() { | |
| pinMode(11, OUTPUT); | |
| } | |
| void loop() { | |
| digitalWrite(11, HIGH); | |
| delay(1000); | |
| digitalWrite(11, LOW); | |
| delay(1000); | |
| } |
NewerOlder