没有合适的资源?快使用搜索试试~ 我知道了~
首页Python Document 经典资料
Python Document 经典资料
需积分: 50 24 下载量 152 浏览量
更新于2023-05-22
1
收藏 296KB PDF 举报
Python Document 经典资料 Python Document 经典资料
资源详情
资源推荐
python-ev3dev Documentation
Release 2.0.0beta1.post3
Ralph Hempel et al
Aug 31, 2018
Contents
1 Getting Started 3
2 Usage 5
2.1 The template for a Python script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Important: Make your script executable (non-Visual Studio Code only) . . . . . . . . . . . . . . . . 6
2.3 Controlling the LEDs with a touch sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Running a single motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Driving with two motors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.6 Using text-to-speech . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 User Resources 9
4 Upgrading this Library 11
5 Developer Resources 13
6 Python 2.x and Python 3.x Compatibility 15
6.1 Upgrading from ev3dev-jessie (library v1) to ev3dev-stretch (library v2) . . . . . . . . . . . . . . . . 15
6.1.1 Updating import statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1.2 Remove references to connected attribute . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.1.3 Screen class has been renamed to Display . . . . . . . . . . . . . . . . . . . . . . . . 16
6.1.4 Reorganization of RemoteControl, BeaconSeeker and InfraredSensor . . . . . 16
6.1.5 Re-designed Sound class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2 Once you’ve adapted to breaking changes, check out the cool new features! . . . . . . . . . . . . . . 16
6.3 API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.3.1 Motor classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.3.2 Sensor classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.3.3 Other classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.4 Working with ev3dev remotely using RPyC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.5 Frequently-Asked Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.5.1 My script works when launched as python3 script.py but exits immediately or throws
an error when launched from Brickman or as ./script.py . . . . . . . . . . . . . . . . 51
i
ii
python-ev3dev Documentation, Release 2.0.0beta1.post3
A Python3 library implementing an interface for ev3dev devices, letting you control motors, sensors, hardware but-
tons, LCD displays and more from Python code.
If you haven’t written code in Python before, you’ll need to learn the language before you can use this library.
Contents 1
剩余60页未读,继续阅读
ys1203
- 粉丝: 1
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功