当前位置:网站首页>arduino字符串转16进制数 大彩串口屏用。
arduino字符串转16进制数 大彩串口屏用。
2022-06-26 01:55:00 【赤脚_码农】
String Zi_Fu_Chuan = "我是中国人ABCD4567.879";//字符串
void setup() {
Serial.begin(115200);
}
void loop() {
delay(1000);
//字符串转16进制
Serial.println(Zi_Fu_Chuan_Zhuai_16_Jin_Zhi_Shu(Zi_Fu_Chuan));
}
/************************************************** 字符串转16进制 **************************************************/
String Zi_Fu_Chuan_Zhuai_16_Jin_Zhi_Shu(String Zi_Fu_Chuan) {
String _16_Jin_Zhi_Shu = "";
for (int i = 0; i < Zi_Fu_Chuan.length(); i++) {
_16_Jin_Zhi_Shu += String(Zi_Fu_Chuan[i], HEX);
}
return _16_Jin_Zhi_Shu;
}
边栏推荐
- High availability in Internet three highs (high concurrency, high performance and high availability)
- 【缺陷检测】基于matlab GUI印刷电路板自动缺陷检测【含Matlab源码 1912期】
- OpenAPI 3.0 规范-食用指南
- A few simple ways for programmers to exercise their waist
- Install development cross process communication
- 基于 ovarian 数据集 进行生存分析
- PyQt theme
- Ardiuno smart mosquito racket
- A high-frequency interview question from a large factory: tell me about the solution of high and low interface idempotence? Solutions are attached.
- How to adjust face input size
猜你喜欢

Digital commodity DGE -- the dark horse of wealth in digital economy

Camtasia 2022 new ultra clear recording computer video

表达式的动态解析和计算,Flee用起来真香

ROS2+DDS+RTPS

业务流程图设计

财富自由技能:把自己产品化

Introduction to bloc: detailed explanation of cube

Redis6.0 new feature - ACL (permission control list) implements the restriction of user executable commands and keys

饼图变形记,肝了3000字,收藏就是学会!

win32
随机推荐
第一章:渗透测试的本质信息收集
100002nd prime
Is it safe to open a securities account at the school of Finance and business in 2022?
Cow sequencing problem
Chapter I: essential information collection of penetration test
Interviewer: please name four ways to exchange the values of two variables without using third-party variables
.NET7之MiniAPI(特别篇) :Preview5优化了JWT验证(下)
Multi surveyor Gongshu Xiao sir_ The solution of using websocket error reporting under working directory
2021-08-04
Gold three silver four~
The "more" option of Spreadtrum platform dearmcamera2 is removed
【机器学习】基于多元时间序列对高考预测分析案例
Share some remote office experience in Intranet operation | community essay solicitation
股票开户怎么开户?网上开户是否安全么?
在同花顺网上开户安全吗?如何网上开一个券商账户
What is the sudden power failure of iPhone and how to solve it?
Explain the JVM clearly at one time and don't be asked by the interviewer again
【flask入门系列】flask处理请求和处理响应
@Query difficult and miscellaneous diseases
How do I take a screenshot of the iPad? 7 ways to take quick screenshots of iPad