当前位置: 首页 > news >正文

做vlogger的网站有哪些犀牛云网站建设费用

做vlogger的网站有哪些,犀牛云网站建设费用,河源北京网站建设,品牌营销推广策划学院 班级 学号 姓名 日期 成绩 实验题目 按键和中断 实验目的 实现闪灯功能转换 硬件原理 无 关键代码及注释 /* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached… 学院 班级 学号 姓名 日期 成绩 实验题目 按键和中断 实验目的 实现闪灯功能转换 硬件原理 无 关键代码及注释 /*   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 attached from pin 13 to ground  * pushbutton attached to pin 2 from 3.3V  * 10K resistor attached to pin 2 from ground  * Note: on most Arduinos there is already an LED on the board  attached to pin 13.  created 2005  by DojoDave http://www.0j0.org  modified 30 Aug 2011  by Tom Igoe  modified Apr 27 2012  by Robert Wessels  This example code is in the public domain.  http://www.arduino.cc/en/Tutorial/Button  */ // constants wont change. Theyre used here to // set pin numbers: const int buttonPin PUSH2;     // the number of the pushbutton pin const int ledPin1  GREEN_LED;      // the number of the LED pin const int ledPin2  YELLOW_LED; const int ledPin3  RED_LED; int ledState LOW; int ledState1 LOW; int ledState2 LOW; int ledState3 LOW; volatile bool state HIGH; int count 0; // variables will change: int buttonState 0;         // variable for reading the pushbutton status long previousMillis 0;        // will store last time LED was updated long term 0; // the follow variables is a long because the time, measured in miliseconds, // will quickly become a bigger number than can be stored in an int. long interval 1000;   void setup() {   // initialize the LED pin as an output:   pinMode(ledPin1, OUTPUT);         pinMode(ledPin2, OUTPUT);   pinMode(ledPin3, OUTPUT);   //digitalWrite(ledPin,state);   pinMode(buttonPin,INPUT_PULLUP);   attachInterrupt (buttonPin ,blink ,RISING); } void blink(){   state !state; } void loop(){   unsigned long currentMillis millis();      if(stateHIGH){   if(currentMillis - previousMillis interval) {     // save the last time you blinked the LED     previousMillis currentMillis;        // if the LED is off turn it on and vice-versa:     if (ledState LOW)       ledState HIGH;     else{       ledState LOW;              }     // set the LED with the ledState of the variable:  digitalWrite(ledPin1, ledState);  digitalWrite(ledPin2, ledState);  digitalWrite(ledPin3, ledState);  } } else{   if(currentMillis - previousMillis interval) {     previousMillis currentMillis;       if (ledState1 LOW ledState2 LOW ledState3 LOW)       ledState1 HIGH;     else if(ledState1 HIGH){       ledState1 LOW;       ledState2 HIGH;       }      else if(ledState2 HIGH){       ledState2 LOW;       ledState3 HIGH;                     }       else if(ledState3 HIGH){       ledState3 LOW;       ledState1 HIGH;             }  digitalWrite(ledPin1, ledState1);  digitalWrite(ledPin2, ledState2);  digitalWrite(ledPin3, ledState3);   } } } 实验步骤 在上次作业基础上加上了按钮中断 实验结果 思考与反馈 无
http://www.hkea.cn/news/14484384/

相关文章:

  • 网上书城网站建设目的增城网站怎么做seo
  • 网站建设设计 昆山南京广告公司电话
  • 厦门个人建网站接网站开发做多少钱
  • 做网站界面多少钱影楼网站源码
  • 东莞网站建设备案微信如何开通小程序
  • 网站建设开发图片青岛崂山区网站建设
  • 网站建设财务分析wordpress搭建邮箱
  • 一般网站的服务器云电脑免费体验
  • 路由器电脑可以做网站主机南沙电子商务网站建设
  • 网站域名需要购买吗做赚钱的网站有哪些
  • 网站推广话术wordpress中英文
  • 北京专业建设网站价格网站管理与建设教程
  • 怎样做投资与理财网站企业所得税25%怎么计算
  • 川畅科技搜搜 网站设计河南平安建设网站
  • 郑州做网站的公司排名深圳网站设计教程
  • 网站注册怎么做屏蔽过滤在线教育网站开发实例
  • 3. 是网站建设的重点中兴的网站谁做的
  • 潍坊市住房和城乡建设网站济南地区做企业网站的公司
  • 静安微信手机网站制作西安公司网站如何建设
  • 网站上传后横沥镇做网站
  • 苏州装修公司网站建设河北建筑培训网官网
  • 网站建设 流程视频网站 怎么做
  • 怎么往网站添加视频猪八戒包装设计
  • 云南网站开发网络公司wordpress数据都被存在哪里
  • 建设手机版网站需要主机多少空间企业二级网站怎么做
  • 郑州区块链数字钱包网站开发周期榆林做网站的公司
  • 推广之家seo求职
  • 网站建设的职责提高网站流量的软文案例
  • ps可以做网站吗产品运营推广方案
  • 福州的网站建设手机商城网站模板