当前位置:网站首页>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="";
}
}
边栏推荐
- Unable to open kernel device '\.\vmcidev\vmx': operation completed successfully. Reboot after installing vmware workstation? Module "devicepoweron" failed to start. Failed to start the virtual machine
- Find the greatest common divisor and the least common multiple (C language)
- [homework] 2022.7.6 write your own cal function
- Is the gold content of intermediate e-commerce division in the soft exam high?
- Is the soft test intermediate useful??
- Find the root of equation ax^2+bx+c=0 (C language)
- 路由器开发知识汇总
- 施努卡:机器视觉定位技术 机器视觉定位原理
- Those confusing concepts (3): function and class
- 【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
猜你喜欢
Openinstall and Hupu have reached a cooperation to mine the data value of sports culture industry
使用U2-Net深层网络实现——证件照生成程序
What does intermediate software evaluator test
在线硬核工具
Unable to open kernel device '\.\vmcidev\vmx': operation completed successfully. Reboot after installing vmware workstation? Module "devicepoweron" failed to start. Failed to start the virtual machine
[machine learning 03] Lagrange multiplier method
【推薦系統 01】Rechub
Five simple and practical daily development functions of chrome are explained in detail. Unlock quickly to improve your efficiency!
When do you usually get grades in the soft exam? Online pedaling?
IIC Basics
随机推荐
[daiy5] jz77 print binary tree in zigzag order
Unable to open kernel device '\.\vmcidev\vmx': operation completed successfully. Reboot after installing vmware workstation? Module "devicepoweron" failed to start. Failed to start the virtual machine
[detailed explanation of Huawei machine test] tall and short people queue up
Using tansformer to segment three-dimensional abdominal multiple organs -- actual battle of unetr
Schnuka: working principle of robot visual grasping machine visual grasping
如何顺利通过下半年的高级系统架构设计师?
Leetcode-560: subarray with sum K
【推薦系統 01】Rechub
使用U2-Net深层网络实现——证件照生成程序
I plan to take part in security work. How about information security engineers and how to prepare for the soft exam?
TypeScript 接口继承
使用Tansformer分割三维腹部多器官--UNETR实战
I'd rather say simple problems a hundred times than do complex problems once
在线硬核工具
宁愿把简单的问题说一百遍,也不把复杂的问题做一遍
[牛客网刷题 Day6] JZ27 二叉树的镜像
The width of table is 4PX larger than that of tbody
关于easyflash v3.3使用过程的记录
Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario
Mendeley--免费的文献管理工具,给论文自动插入参考文献