button 教程
http://blog.csdn.net/jcodeer/article/details/1811298
滚动条教程
http://blog.csdn.net/jcodeer/article/details/1811313
最基本的TK按键程序:
...
徐 自远
8年前 (2017-09-05) 870℃
3喜欢
任何常规LED都可以使用PWM(脉冲宽度调制)设置其亮度值。在GPIO Zero中,可以PWMLED使用0和1之间的值来实现 :
Python
#LEDPWM1.PY
from gpiozero import PW...
徐 自远
8年前 (2017-09-04) 1153℃
2喜欢
[cc lang=”python”]
from gpiozero import LED, Button
from time import sleep
led = LED(17)
button = Button(2)
while True:
butto...
徐 自远
8年前 (2017-09-03) 636℃
4喜欢
「57行代码搞定8600万美元项目」用开源工具DIY车牌识别系统
新智元编译
(文/Tiait Brown)维多利亚警察局是澳大利亚维多利亚州的主要执法机构。过去一年,维多利亚州共有超过1.6万辆车被盗,费用约为1.7亿美元,警方正在试验各种技术驱动的解决方案来打击汽车盗窃。
...
徐 自远
8年前 (2017-09-03) 655℃
0喜欢
http://gpiozero.readthedocs.io/en/stable/api_input.html#button
11.1. Button
classgpiozero.Button(pin, *, pull_up=True, bounce_time=None, ...
徐 自远
8年前 (2017-09-01) 860℃
0喜欢
http://gpiozero.readthedocs.io/en/stable/api_output.html#led
12.1. LED
classgpiozero.LED(pin, *, active_high=True, initial_value=False, p...
徐 自远
8年前 (2017-09-01) 681℃
7喜欢
Step 5: Using buttons to get input
Now you’re able to control an output component (an LED), let’s connect and control an input component: a...
徐 自远
8年前 (2017-09-01) 1048℃
3喜欢
管脚排列顺序
Step 1: GPIO pins
One powerful feature of the Raspberry Pi is the row of GPIO pins along the top edge of the board. GPIO stands ...
徐 自远
8年前 (2017-09-01) 919℃
1喜欢
https://projects.raspberrypi.org/en/projects/physical-computing
https://sourceforge.net/p/raspberry-gpio-python/wiki/browse_pages/
http://...
徐 自远
8年前 (2017-08-31) 808℃
22喜欢
树莓派开发系列教程9——树莓派GPIO控制
一、常用开源工程简介
树莓派内核中已经编译自带了gpio的驱动,我们常通过一些第三方写好的库函数来完成具体的操作,比较常见的操作库函数有:
1、Python GPIO
【开发语言】——python
【简单介绍】——树莓派官方资料中推...
徐 自远
8年前 (2017-08-30) 868℃
0喜欢