当前位置:网站首页>IOT learning journey - initial
IOT learning journey - initial
2022-07-16 07:27:00 【Girls don't have code fragrance】
and go Say goodbye for a while , Start the learning of SCM .
In the school curriculum , Learned the knowledge of SCM .
To realize computer and NodoMCU interconnection , Download... First arduino.exe, Download the corresponding development board and driver .
One did 40 Examples of simulation and real experiments . Choose a few at random to show the results .
One 、 stay arduino.exe Run some basic C The language code .( stay arduino.exe Run code , The premise must be with nodemcu Successful connection , Choose a good serial port and nodmcu Connect , To operate normally )
void setup() {
pinMode(2,output);
pinMode(3,output);
pinMode(4,output);
pinMode(5,output);
pinMode(6,output);
pinMode(7,output);
pinMode(8,output);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i=2;i<=9;i++){
digitalWrite(i,HIGH);
delay(600);
}
for(int i=2;i<9;i++){
digitalWrite(i,LOW);
delay(600);
}
delay(1000);
}
Effect screenshots :
Although there is no code to light up ,arduino The code on ran successfully ,nodmcu Still on .
Two 、
String myWelcomeString = "KM Shibly Reza";
String myStartString = "Let's GO GO GO";
String Combine = myWelcomeString + "\n" + myStartString;
void setup() {
Serial.begin(9600);
delay(4800);
Serial.println(Combine);
}
void loop() {
}
Run a screenshot :
stay tinkercad Upper analog circuit :
Code :
const int buttonPin = 2;
const int ledPin = 13;
int buttonState = 0;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
Screenshot :
After program running , Click the button in the figure ,LED It will light up .
3、 ... and 、
#include<LiquidCrystal.h>
LiquidCrystal Icd=LiquidCrystal(2,3,4,5,6,7);
void setup(){
Icd.begin(16,2);
}
void loop(){
Icd.setCursor(2,0);
Icd.print("Hello World");
Icd.setCursor(2,1);
Icd.print("Lijiaming");
}

边栏推荐
- Chrome realizes automated testing: recording and playback web page actions
- The official case of unity rubyadventure
- 【LeetCode】1217. 玩筹码
- 观察者模式
- Unity3d tips
- 2021-11-13攻防世界做题记录01MISC
- SAP ABAP Selection Screen 选择屏幕看这一篇就够了(持续更新)
- Independent game notes-001 the beginning of a world
- MySQL 错误信息 Errors
- MySQL - data page
猜你喜欢

线程机制与事件机制

Xiaomi held the 5th IOT security summit to help protect industry security and privacy

The official case of unity rubyadventure

SAP DUMP CALLBACK_ REJECTED_ BY_ WHITELIST - SE51, RSSCREENPAINTER

Hardware course design: sensor device of multi-function player based on stm32

Unity3d monobehavior base class

【LeetCode】1252. 奇数值单元格的数目

【软件质量保障笔记】软件质量保障

闭包那点事儿

2021-11-13攻防世界做题记录01MISC
随机推荐
unity3d~坦克AI(小练习)
SAP tables transparent tables and views (continuously updated)
Rapport d'essai du plan de mise en œuvre de la sécurité dans les environnements San et NAS
MySQL 错误信息 Errors
ES6-ES11新特性(这一篇就够了)
Hardware course design: sensor device of multi-function player based on stm32
Chrome实现自动化测试:录制回放网页动作
Hardware course design: chat function of multi-function player based on stm32
SAP DUMP CALLBACK_REJECTED_BY_WHITELIST - SE51, RSSCREENPAINTER
2、 Implementation of software RAID experiment report
7、 Experimental report of security implementation scheme in San and NAS environment
JVM目录
Semaphore,CountDownLatch使用和浅谈源码
[learning records on June 2]
Men should be "strong", not "soft", "weak" and "empty"
I have added 101.132.179.94 to the white list of Oracle and still failed to Ping. What should I do
One way linked list implements queue and stack
Title: the nearest common ancestor of binary tree
五、Microsoft群集服务(MSCS)环境的搭建实验报告
Implementation of hash table separation link method class template