当前位置:网站首页>Arduino receives and sends strings
Arduino receives and sends strings
2022-07-07 10:49:00 【HCC2017】
void setup(){
Serial.begin(9600);
}
String bytes ="";
void loop() {
while (Serial.available() > 0)
{
bytes += char(Serial.read());
delay(2);
}
int index=bytes.toInt();
if(index>0&&index<1000)
{
Serial.println(index);
index=0;
bytes="";
}
}
边栏推荐
- leetcode-304:二维区域和检索 - 矩阵不可变
- July 10, 2022 "five heart public welfare" activity notice + registration entry (two-dimensional code)
- 那些易混淆的概念(三):function和class
- What are the contents of the intermediate soft test, the software designer test, and the test outline?
- Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario
- 使用 load_decathlon_datalist (MONAI)快速加载JSON数据
- 打算参加安全方面工作,信息安全工程师怎么样,软考考试需要怎么准备?
- 2022.7.6DAY598
- 中级网络工程师是什么?主要是考什么,有什么用?
- Leetcode-303: region and retrieval - array immutable
猜你喜欢
ArrayList thread insecurity and Solutions
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
打算参加安全方面工作,信息安全工程师怎么样,软考考试需要怎么准备?
在线硬核工具
[pro test feasible] error while loading shared libraries solution
1321: [example 6.3] deletion problem (noip1994)
使用 load_decathlon_datalist (MONAI)快速加载JSON数据
MySQL insert data create trigger fill UUID field value
Multithreaded asynchronous orchestration
【推荐系统 02】DeepFM、YoutubeDNN、DSSM、MMOE
随机推荐
优雅的 Controller 层代码
China Southern Airlines pa3.1
Records on the use of easyflash v3.3
What does intermediate software evaluator test
软考信息处理技术员有哪些备考资料与方法?
Mendeley--免费的文献管理工具,给论文自动插入参考文献
Multithreaded asynchronous orchestration
ADB utility commands (network package, log, tuning related)
【推薦系統 01】Rechub
[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer
I'd rather say simple problems a hundred times than do complex problems once
深入理解Apache Hudi异步索引机制
Schnuka: machine vision positioning technology machine vision positioning principle
使用Tansformer分割三维腹部多器官--UNETR实战
IIC Basics
Typescript interface inheritance
Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
Gym installation pit records
SQL Server 知识汇集9 : 修改数据
Network engineer test questions and answers in May of the first half of 2022