công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

DFR0604 bảng dữ liệu(PDF) 9 Page - DFROBOT

tên linh kiện DFR0604
Giải thích chi tiết về linh kiện  IO Expansion HAT for Pi Zero/Zero W
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  DFROBOT [DFROBOT]
Trang chủ  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0604 bảng dữ liệu(HTML) 9 Page - DFROBOT

Back Button DFR0604 Datasheet HTML 5Page - DFROBOT DFR0604 Datasheet HTML 6Page - DFROBOT DFR0604 Datasheet HTML 7Page - DFROBOT DFR0604 Datasheet HTML 8Page - DFROBOT DFR0604 Datasheet HTML 9Page - DFROBOT DFR0604 Datasheet HTML 10Page - DFROBOT DFR0604 Datasheet HTML 11Page - DFROBOT DFR0604 Datasheet HTML 12Page - DFROBOT DFR0604 Datasheet HTML 13Page - DFROBOT  
Zoom Inzoom in Zoom Outzoom out
 9 / 13 page
background image
PWM Pin of IO expansion board
Value of the first parameter
2
2
3
3
All Pins
board.ALL
Press Ctrl+X, and then press Y to save and exit nano editor.
Input command sudo raspi-config to open the IIC interface.
Input command python servoTest.py to run file servoTest.py.
•
Analog
Sample Code:
# -*- coding:utf-8 -*-
# analogTest.py
import time
from DFRobot_RaspberryPi_Expansion_Board import DFRobot_Expansion_Board_IIC as Board
board = Board(1, 0x10)
# Select i2c bus 1, set address to 0x10
if __name__ == "__main__":
while board.begin() != board.STA_OK:
# Board begin and check the board's status
print("Board begin faild.")
time.sleep(1)
print("Board begin success.")
board.set_adc_enable()
while True:
print("Read part of channels.")
val0 = board.get_adc_value(board.A0) # channel A0 is readed
'''
val1 = board.get_adc_value(board.A1) # channel A1 is readed
val2 = board.get_adc_value(board.A2) # channel A2 is readed
val3 = board.get_adc_value(board.A3) # channel A3 is readed
'''
print("channel:A0, value:%d" %val0)
'''
print("channel:A1, value:%d" %val1)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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