-
-
Save neosarchizo/2963b5c6c8747eb0bcfd to your computer and use it in GitHub Desktop.
[아두이노, 상상을 현실로 만드는 프로젝트 입문편] 코드 11 - 1
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
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 2, 3, 4, 5); | |
void setup() { | |
lcd.begin(16, 2); | |
} | |
void loop() { | |
int light = analogRead(A0); | |
lcd.clear(); | |
lcd.print("Light : "); | |
lcd.print(light); | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment