| Datenblatt-Suchmaschine für elektronische Bauteile |
|
DFR0331 Datenblatt(PDF) 21 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0331 Datenblatt(HTML) 21 Page - DFROBOT |
|
21 / 24 page ![]() Analog Application A.Analog Read Part List and Hardware Connection: Micro USB cable x1 Romeo for Edison Controller x1 Intel® Edison x1 NOTE: As Romeo for Edison is using ATmega 8 as Analog pins driver. Please downloa d the DFRobot4Edison library first. The library is keeping update, so some sample code and picture will be different to the old one. Sample code: Open Arduino IDE, Select Boards -->Intel Edison and COM port In this section, please down load the DFRobot4Edison library (https://github.com/ouki-wang/remeo4edison) first. /* *Copyright (c) 2014, Chengdu Geeker Technology Co., Ltd. *All rights reserved * *File Name : analogRead.ino *File Tag : *Summary : A0-A5 port Analog reading example * *Version : V1.0 *Author : weibing.deng(15196617738@163.com) *Time : 2014.12.22 */ #include <DFRobot.h> #include <IIC1.h> unsigned int value = 0; void setup() { Serial.begin(9600); } void loop() { value = analogRead(A0); Serial.print("A0=");Serial.println((int)value); value = analogRead(A1); Serial.print("A1=");Serial.println((int)value); value = analogRead(A2); Serial.print("A2=");Serial.println((int)value); value = analogRead(A3); Serial.print("A3=");Serial.println((int)value); value = analogRead(A4); Serial.print("A4=");Serial.println((int)value); value = analogRead(A5); Serial.print("A5=");Serial.println((int)value); delay(2000); } Page 21 of 24 |
|
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |