티스토리 뷰
728x90
출처 : Analog Read Serial
배선
소스
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Graphical representation is available using serial plotter (Tools > Serial Plotter menu) Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 1: int sensorValue = analogRead(A1); // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability }
결과
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- android
- Mac
- MySQL
- 튜닝쇼 2008
- 일본여행
- flex
- 레이싱모델 익스트림 포토 페스티벌
- Spring MVC
- 전예희
- oracle
- sas2009
- Linux
- ble
- Java
- 지스타2007
- BPI-M4
- KOBA
- Delphi
- Xcode
- koba2010
- 서울오토살롱
- JavaScript
- Spring
- SAS
- 동경
- Delphi Tip
- ubuntu
- ffmpeg
- NDK
- 송주경
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함