| 数据搜索系统,热门电子元器件搜索 |
|
DFR0053 数据表(PDF) 3 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0053 数据表(HTML) 3 Page - DFROBOT |
|
3 / 3 page ![]() Sample Code // # Editor : Lauren from DFRobot // # Date : 30.12.2011 // # // # Editor : Lauren from DFRobot // # Date : 17.01.2012 // # Product name: Rotation Sensor v1/v2 or Analog Slide Position Sensor // # Product SKU : DFR0054/DFR0058/DFR0053 // # Version : 1.0 // # Description: // # the sample to drive some analog sensors // # Connection: // # Signal output pin -> Analog pin 0 // # void setup() { Serial.begin(9600); //Set serial baud rate to 9600 bps } void loop() { int val; val=analogRead(0); //Read slider value from analog 0 Serial.println(val,DEC);//Print the value to serial port delay(100); } Powered By DFRobot © 2008-2017 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |