stm32中字符串拼接
时间: 2023-09-13 16:05:40 浏览: 205
LCD-Character-master_stm32lcd_
在STM32中进行字符串拼接可以使用sprintf函数。该函数可以将多个字符串或者变量拼接成一个字符串。你可以使用该函数来将多个字符串或变量拼接成一个字符串,并将结果保存在一个字符数组中。比如,你可以使用以下代码进行字符串拼接:
```c
#define u8 unsigned char
#define u32 unsigned int
#define u16 unsigned short int
u8 Rx_data3=0x00, Rx_data2=0x8D, Rx_data1=0x2C;
char spiBuf<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【STM32代码移植问题4:字符串拼接/数字转换、共用体与时间戳】](https://blog.csdn.net/qq_45539458/article/details/129503710)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [STM32——C语言基础](https://blog.csdn.net/asdf1234dfty/article/details/125880585)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [STM32智能家居7天小项目(2)串口的使用](https://blog.csdn.net/m0_49476241/article/details/124275843)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文