Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
Last active November 8, 2015 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neosarchizo/2963b5c6c8747eb0bcfd to your computer and use it in GitHub Desktop.
Save neosarchizo/2963b5c6c8747eb0bcfd to your computer and use it in GitHub Desktop.
[아두이노, 상상을 현실로 만드는 프로젝트 입문편] 코드 11 - 1
#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