当前位置:网站首页>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="";
}
}
边栏推荐
- OpenGL glLightfv 函数的应用以及光源的相关知识
- [machine learning 03] Lagrange multiplier method
- 施努卡:机器视觉定位技术 机器视觉定位原理
- Use load_ decathlon_ Datalist (Monai) fast loading JSON data
- CAS mechanism
- Kotlin realizes wechat interface switching (fragment exercise)
- Records on the use of easyflash v3.3
- 深入理解Apache Hudi异步索引机制
- TypeScript 接口继承
- Installation and configuration of slurm resource management and job scheduling system
猜你喜欢

SQL Server 知识汇集9 : 修改数据

软考中级,软件设计师考试那些内容,考试大纲什么的?

Find the greatest common divisor and the least common multiple (C language)

ThreadLocal is not enough

如何顺利通过下半年的高级系统架构设计师?
![1321: [example 6.3] deletion problem (noip1994)](/img/bd/b605ec7b901079a9ebaca446fad7fb.png)
1321: [example 6.3] deletion problem (noip1994)

Applet jump to H5, configure business domain name experience tutorial
![[pro test feasible] error while loading shared libraries solution](/img/e2/688ffa07861f38941cbf2cafdd9939.png)
[pro test feasible] error while loading shared libraries solution

555 circuit details

【推荐系统 01】Rechub
随机推荐
The width of table is 4PX larger than that of tbody
Leetcode-303: region and retrieval - array immutable
Multisim--软件相关使用技巧
[système recommandé 01] rechub
[dai6] mirror image of JZ27 binary tree
Records on the use of easyflash v3.3
Elegant controller layer code
SQL Server 知识汇集11 : 约束
【实战】霸榜各大医学分割挑战赛的Transformer架构--nnFormer
IDA中常见快捷键
ThreadLocal is not enough
CSAPP bomb lab parsing
Monai version has been updated to 0.9. See what new functions it has
String formatting
Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario
原型与原型链
2022.7.5DAY597
Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
The mobile terminal automatically adjusts the page content and font size by setting rem
SQL Server 知识汇集9 : 修改数据