一 类的设计原则1 依赖倒置原则-Dependency Inversion Principle (DIP)2 里氏替换原则-Liskov Substitution Principle (LSP)3 接口分隔原则-Interface Segregation Principle (ISP)4 单一职责原...
分类:
编程语言 时间:
2015-09-06 21:39:22
阅读次数:
342
一.实物图二.例子代码注:代码来自老外http://www.4tronix.co.uk/arduino/Stepper-Motors.php功能:控制电机正反转// This Arduino example demonstrates bidirectional operation of a // 2...
分类:
其他好文 时间:
2015-09-06 20:11:45
阅读次数:
263
一.实物图二.例子代码注:git clonehttps://github.com/z3t0/Arduino-IRremote.git 放到Arduino 的libraries目录下面从遥控器上按0到9依次输出如下编码
分类:
其他好文 时间:
2015-09-06 20:05:18
阅读次数:
190
一.实物图二.例子代码用到数字1 和2 引脚,还有两个就是vcc GND两个阴脚,用模块连线比较简单
分类:
其他好文 时间:
2015-09-06 16:07:41
阅读次数:
113
一.实物图 二.例子代码每隔5s切换断开 接通状态
分类:
其他好文 时间:
2015-09-06 15:53:17
阅读次数:
321
一.实物图注:电阻选取4.7k欧二.事例代码注:先下载Onewire库到arduinolibraries目录下,然后就有例子#include // OneWire DS18S20, DS18B20, DS1822 Temperature Example//// http://www.pjrc.com...
分类:
其他好文 时间:
2015-09-06 14:20:32
阅读次数:
185
一.接线原理图二.实物图三.事例代码下载 git clonehttps://github.com/adafruit/DHT-sensor-library.git解压放到arduino-1.6.5-r5\libraries 目录下 重命名为DHT四.串口显示接收到的数据
分类:
其他好文 时间:
2015-09-05 17:43:08
阅读次数:
242
一.接线原理图一.实物图三.事例代码从0转180度,再从180转到0度
分类:
其他好文 时间:
2015-09-05 16:22:03
阅读次数:
213
一. arduino代码以及串口收到的显示数据二.实物图#绘制电路图
分类:
其他好文 时间:
2015-09-03 16:31:49
阅读次数:
154