Arduino自带例子..doc

  1. 1、本文档共17页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Arduino自带例子.

核心职能 Simple programs that demonstrate basic Arduino commands.简单的程序,演示基本的Arduino命令。 These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder.这些都包含在Arduino环境,打开它们,单击工具栏上的打开按钮,并期待在examples文件夹。 1.Basics 1.Basics BareMinimum : The bare minimum of code needed to start an Arduino sketch. BareMinimum :最低限度的代码需要启动一个Arduino草图。 Blink : Turn an LED on and off. 闪烁 :开启LED的开启和关闭。 DigitalReadSerial : Read a switch, print the state out to the Arduino Serial Monitor. DigitalReadSerial :阅读交换机,打印到Arduino串行监视器的状态。 AnalogReadSerial : Read a potentiometer, print its state out to the Arduino Serial Monitor. AnalogReadSerial :阅读电位器,打印到Arduino串行监视器,它的状态。 Fade : Demonstrates the use of analog output to fade an LED. 褪色 :演示使用模拟输出褪色的LED。 2.Digital 2.Digital Blink Without Delay : blinking an LED without using the delay() function. 毫不拖延地闪烁 :闪烁的LED不使用延迟()函数。 Button : use a pushbutton to control an LED. 按钮 :使用一个按钮来控制一个LED。 Debounce : read a pushbutton, filtering noise. 防抖动 :读一个按钮,过滤噪声。 Button State Change : counting the number of button pushes. 按钮状态的变化 :计数按钮推。 Tone : play a melody with a Piezo speaker. 音 :用压电扬声器播放的旋律。 Pitch follower : play a pitch on a piezo speaker depending on an analog input. 间距追随者 :发挥取决于模拟输入压电扬声器的音调。 Simple Keyboard : a three-key musical keyboard using force sensors and a piezo speaker. 简单的键盘 :三键的音乐键盘,使用武力传感器和压电扬声器。 Tone4 : play tones on multiple speakers sequentially using the tone() command. tone4 :顺序播放多个扬声器的音音()命令。 3.Analog 3.Analog AnalogInOutSerial : read an analog input pin, map the result, and then use that data to dim or brighten an LED. AnalogInOutSerial :读取模拟输入引脚,图的结果,然后用这些数据来变暗或变亮的LED。 Analog Input : use a potentiometer to control the blinking of an LED. 模拟输入 :使用电位器来控制LED的闪烁。 AnalogWriteMega : fade 12 LEDs on and off, one by one, using an Arduino Mega board. AnalogWriteMega :淡出12个LED开启和关闭,一个接一个,使用一个Arduino兆丰板。 Calibration : define a maximum and minimum for expected analog sensor values. 校准 :定义一

文档评论(0)

dashewan + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档