正文内容加载中...
posted @ 2020-12-03 12:03 meetrice 阅读(0) 评论(0) 推荐(0) 编辑
摘要:const byte O = OUTPUT; const byte I = INPUT; const byte H = HIGH; const byte L = LOW; const int serialPort = 9600; const int redLedPin = 11; const int 阅读全文
posted @ 2020-12-03 11:59 meetrice 阅读(0) 评论(0) 推荐(0) 编辑
摘要:项目地址: https://www.tinkercad.com/things/cgPamtJwfSP // Code for `APB-03 Love-O-Meter` // @see https://www.tinkercad.com/things/cgPamtJwfSP const int SE 阅读全文
posted @ 2020-12-03 11:38 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Input Pullup Serial This example demonstrates the use of pinMode(INPUT_PULLUP). It reads a digital input on pin 2 and prints the results to the ser 阅读全文
posted @ 2020-12-03 11:14 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Blink without Delay 无延迟闪烁 Turns on and off a light emitting diode (LED) connected to a digital pin, without using the delay() function. This means 阅读全文
posted @ 2020-12-03 10:55 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* ReadAnalogVoltage 读取模拟电压 Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor. OPEN THE SERIAL MONIT 阅读全文
posted @ 2020-12-03 10:51 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Smoothing 平滑处理 Reads repeatedly from an analog input, calculating a running average and printing it to the computer. Keeps ten readings in an array 阅读全文
posted @ 2020-12-03 10:48 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Calibration 校准 Demonstrates one technique for calibrating sensor input. The sensor readings during the first five seconds of the sketch execution d 阅读全文
posted @ 2020-12-03 10:39 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Analog input, analog output, serial output Reads an analog input pin, maps the result to a range from 0 to 255 and uses the result to set the pulse 阅读全文
posted @ 2020-12-03 10:29 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* LiquidCrystal Library - Hello World Demonstrates the use a 16x2 LCD display. The LiquidCrystal library works with all LCD displays that are compati 阅读全文
posted @ 2020-12-03 10:25 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:#include <Adafruit_NeoPixel.h> #define PIN 2 // input pin Neopixel is attached to #define NUMPIXELS 12 // number of neopixels in strip Adafruit_NeoPix 阅读全文
posted @ 2020-12-03 10:20 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Ping))) Sensor This sketch reads a PING))) ultrasonic rangefinder and returns the distance to the closest object in range. To do this, it sends a p 阅读全文
posted @ 2020-12-03 10:14 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* Pitch follower Plays a pitch that changes based on a changing analog input circuit: * 8-ohm speaker on digital pin 9 * photoresistor on analog 0 to 阅读全文
posted @ 2020-12-03 10:11 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* Multiple tone player Plays multiple tones on multiple pins in sequence circuit: * 3 8-ohm speaker on digital pins 6, 7, and 8 created 8 March 2010 阅读全文
posted @ 2020-12-03 10:04 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* Melody Plays a melody circuit: * 8-ohm speaker on digital pin 8 created 21 Jan 2010 modified 30 Aug 2011 by Tom Igoe This example code is in the pu 阅读全文
posted @ 2020-12-03 10:02 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* Keyboard Plays a pitch that changes based on a changing input circuit: * 3 pushbuttons from +5V to analog in 0 through 3 * 3 10K resistors from ana 阅读全文
posted @ 2020-12-03 10:00 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* Sweep by BARRAGAN <http://barraganstudio.com> This example code is in the public domain. modified 8 Nov 2013 by Scott Fitzgerald http://www.arduino 阅读全文
posted @ 2020-12-03 09:56 meetrice 阅读(5) 评论(0) 推荐(0) 编辑
摘要:/* AnalogReadSerial Reads an analog input (potentiometer) on pin 0, prints the result to the serial monitor. OPEN THE SERIAL MONITOR TO VIEW THE OUTPU 阅读全文
posted @ 2020-12-03 09:49 meetrice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/* DigitalReadSerial Reads a digital input on pin 2, prints the result to the serial monitor This example code is in the public domain. */ int buttonS 阅读全文
posted @ 2020-12-03 09:47 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* Analog Input Demonstrates analog input by reading an analog sensor on analog pin 0 and turning on and off a light emitting diode(LED) connected to 阅读全文
posted @ 2020-12-03 09:44 meetrice 阅读(3) 评论(0) 推荐(0) 编辑
摘要:/* State change detection (edge detection) 状态变化检测(边缘检测) Often, you don't need to know the state of a digital input all the time, but you just need to 阅读全文
posted @ 2020-12-03 09:18 meetrice 阅读(6) 评论(0) 推荐(0) 编辑
摘要:/* 去抖动 每次输入引脚从LOW变为HIGH时(例如由于按钮按),输出引脚从LOW切换到HIGH或从HIGH切换到LOW。有两次触发之间的最小延迟以消除电路抖动(即忽略噪声)。 电路: * LED从引脚13接地 * 按钮连接到引脚2至+ 5V * 10K电阻从引脚2接地 *注意:在大多数Ardui 阅读全文
posted @ 2020-12-03 09:03 meetrice 阅读(4) 评论(0) 推荐(0) 编辑
摘要:/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached to pin 2. The circuit: * LED a 阅读全文
posted @ 2020-12-03 00:59 meetrice 阅读(1) 评论(0) 推荐(0) 编辑
摘要:/* Fade This example shows how to fade an LED on pin 9 using the analogWrite() function. The analogWrite() function uses PWM, so if you want to change 阅读全文
posted @ 2020-12-03 00:53 meetrice 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-03 00:49 meetrice 阅读(1) 评论(0) 推荐(0) 编辑
摘要:const int buttonPin = 2; //定义GPIO2输入开关按钮电平 const int ledPin = 7; //定义GPIO7为电平输出 int buttonState = 0; //GPIO2初使电平为低电平 void setup() { pinMode(ledPin, OU 阅读全文
posted @ 2020-12-03 00:27 meetrice 阅读(1) 评论(0) 推荐(0) 编辑
摘要:原文:https://m.xianjichina.com/news/details_104643.html (贤集网) 发光二极管简称为LED,由镓(Ga)与砷(AS)、磷(P)的化合物制成的二极管,当电子与空穴复合时能辐射出可见光,因而可以用来制成发光二极管。在电路及仪器中作为指示灯,或者组成文字 阅读全文
posted @ 2020-12-02 21:53 meetrice 阅读(8) 评论(0) 推荐(0) 编辑
摘要:ESP8266 WiFi芯片的Arduino支持官网 该项目为 Arduino 环境带来了对 ESP8266芯片的支持。它允许您使用熟悉的 Arduino 函数和库编写示意图,并直接在 ESP8266上运行它们,不需要外部微控制器。 https://github.com/esp8266/Arduin 阅读全文
posted @ 2020-12-01 22:30 meetrice 阅读(8) 评论(0) 推荐(0) 编辑
摘要:直接查看该网站的错误日志, 阅读全文
posted @ 2020-11-29 13:10 meetrice 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Linux 全盘备份恢复工具(Clonezilla) 相信大家在Windows里面都用过一键还原精灵或Ghost镜像工具,那么在Linux是否也有同样的工具呢? Clonezilla便是Linux的备份还原工具,真实体验来讲,它是一款比Windows的一键还原精灵更强大,更灵活的工具,因为它支持直接 阅读全文
posted @ 2020-11-24 22:35 meetrice 阅读(10) 评论(0) 推荐(0) 编辑