티스토리 뷰
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
- Delphi Tip
- Mac
- NDK
- Spring
- ubuntu
- Delphi
- koba2010
- Spring MVC
- sas2009
- ffmpeg
- 지스타2007
- Java
- 전예희
- 서울오토살롱
- 송주경
- JavaScript
- KOBA
- 동경
- 튜닝쇼 2008
- flex
- ble
- SAS
- Linux
- oracle
- android
- 레이싱모델 익스트림 포토 페스티벌
- BPI-M4
- Xcode
- MySQL
- 일본여행
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함