当前位置:网站首页>Arduino string to hexadecimal number for large color serial port screen.
Arduino string to hexadecimal number for large color serial port screen.
2022-06-26 02:46:00 【Barefoot_ Menon】
String Zi_Fu_Chuan = " I'm Chinese ABCD4567.879";// character string
void setup() {
Serial.begin(115200);
}
void loop() {
delay(1000);
// String rotation 16 Base number
Serial.println(Zi_Fu_Chuan_Zhuai_16_Jin_Zhi_Shu(Zi_Fu_Chuan));
}
/************************************************** String rotation 16 Base number **************************************************/
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;
}
边栏推荐
- Magnifier case
- In depth good article: what is supernetting?
- The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
- 分享一些在内网操作的远程办公经验| 社区征文
- 附加:HikariCP连接池简述;(并没有深究,只是对HikariCP连接池有个基本认识)
- 小 P 周刊 Vol.10
- Prometeus 2.33.0 new features
- Explain the JVM clearly at one time and don't be asked by the interviewer again
- 【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.
- IPhone 13 screen stuck black, unable to shut down? How to solve
猜你喜欢
Camtasia 2022 new ultra clear recording computer video
组件与路由
Google 推荐在 MVVM 架构中使用 Kotlin Flow
Implement decorator pattern for servicecollection
How did the thief unlock the password after the iPhone was stolen? After reading the long knowledge
Dual batteries in series, hardware design
How do I take a screenshot of the iPad? 7 ways to take quick screenshots of iPad
The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
[机器翻译]—BLEU值的计算
Gold three silver four~
随机推荐
Little p weekly Vol.10
Dynamic analysis and calculation of expression, flee is really sweet to use
饼图变形记,肝了3000字,收藏就是学会!
Redis6.0 new feature - ACL (permission control list) implements the restriction of user executable commands and keys
The "more" option of Spreadtrum platform dearmcamera2 is removed
Graduation summary of cloud native training camp
UTONMOS坚持“藏品、版权”双优原则助力传统文化高质量发展
Explain the JVM clearly at one time and don't be asked by the interviewer again
Termux install openssh
应届毕业生谈毕业的故事
7 tips to change your life
无法上网问题解决过程
多测师拱墅校区肖sir_jenkins中搭建出现页面报错
High availability in Internet three highs (high concurrency, high performance and high availability)
小 P 周刊 Vol.10
喜讯 | 祝贺Apache Linkis(incubating) 社区新增5位Committer
Oracle练习
使用 AnnotationDbi 转换 R 中的基因名称
[machine learning] case study of college entrance examination prediction based on multiple time series
解读Oracle