Almost the most simple code to control raspberry pi fan. Continue reading raspberry pi fan control
All posts by ht
使用 RPi.GPIO 模块的输出(Output)功能
1、首先对 RPi.GPIO 进行设置(根据这里的描述) Continue reading 使用 RPi.GPIO 模块的输出(Output)功能
使用 RPi.GPIO 模块的输入(Input)功能
这篇日志的内容应该算是《RPi.GPIO 模块使用基础》Input 部分的扩展讲解,详细讲解了 Input 部分的一些高级应用技巧。
目前有几种途径可以在您的程序中获得 GPIO 的输入信息。第一种也是最简易的一种为在某个时间点检查输入值。这即是所谓的“轮询(polling)”,而且如果您的程序在错误的时间里进行了读取,可能会错过某个输入值。在循环中运用轮询,有可能使处理器资源紧张。另一种对 GPIO 输入进行响应的方式可以使用“中断(interruots)”(边缘检测(edge detection))。边缘可以是从 HIGH 到 LOW 的过度(下降临界值(falling edge))或从 LOW 到 HIGH 的过度(上升临界值(rising edge))。 Continue reading 使用 RPi.GPIO 模块的输入(Input)功能
RPi.GPIO 模块使用基础
RPi.GPIO 模块程序包提供了一个在 Raspberry Pi 中控制 GPIO 的类。
注意,该模块不适合应用到追求实时性或计数周期的应用中。这是由于您无法预测 Ptyhon 何时繁忙,以及资源回收的时间。而且它是运行在基于 Linux 核心的系统中,也不合适用于实时应用 – 原因在于其它进程可能获得更高的 CPU 优先级。如果您一定要追求实时操作的性能,可以考虑购买一块 Arduino 主板http://www.arduino.cc! Continue reading RPi.GPIO 模块使用基础
All about Raspberry Pi GPIO
Introduction
Relative to its size the Raspberry Pi is a powerhorse of a computer – it can drive HDMI displays, process mouse, keyboard, and camera inputs, connect to the Internet, and run full-featured Linux distributions. But it’s more than just a small computer, it’s a hardware prototyping tool! The Pi has bi-directional I/O pins, which you can use to drive LEDs, spin motors, or read button presses. Continue reading All about Raspberry Pi GPIO
Win10 开机弹出 explorer.exe
运行 regedit 打开注册表, HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows下检查load键值数据,正常数据为空。
raspbian 解压 rar
sudo apt-get install unrar-free
if not, try unrar-nonfree by following the instruction next: Continue reading raspbian 解压 rar
raspbian 安装 7zip
sudo apt-get install p7zip-full Continue reading raspbian 安装 7zip
怎么用一根网线将两台电脑连接成局域网
主机IP设置为:
IP地址,子网掩码中分别填入192.168.37.1 ,255.255.255.0 ,默认网关留空。
客户机IP设置为:
IP地址,子网掩码,默认网关中填入192.168.37.2 ,255.255.255.0 ,192.168.37.1
已达到计算机的连接数最大值
一:右击我的电脑–管理,打开系统工具–共享文件夹–会话,手动删除里面的会话;
二:在开始-运行栏里输入gpedit.msc,回车后,选择计算机配置–管理模板–windows组件–远程桌面服务–远程桌面会话主机–连接,打开右边显示框中的‘限制连接的数量’