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