重大好消息,重大好消息,ARDUINO IDE支持中文变量名称了。
我想念已久的中文变量名终于可以了。
中文变量的用处感觉不怎么大!感觉代码补全和格式自动对齐用处更大! 除了这个还更新了啥 引入中文就涉及到编码问题了。。。 XlinliY.Zhang 发表于 2021-10-9 17:47
引入中文就涉及到编码问题了。。。
编码问题?能举例说明吗? 我下载了,咋变异不通过呢?正在编译项目...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-ID:\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_706162\\sketch\\sketch_oct10a.ino.cpp" -o "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_706162\\sketch\\sketch_oct10a.ino.cpp.o"
sketch_oct10a:1:5: error: stray '\346' in program
sketch_oct10a:1:6: error: stray '\225' in program
sketch_oct10a:1:7: error: stray '\260' in program
sketch_oct10a:1:8: error: stray '\345' in program
sketch_oct10a:1:9: error: stray '\255' in program
sketch_oct10a:1:10: error: stray '\227' in program
sketch_oct10a:5:1: error: stray '\346' in program
sketch_oct10a:5:2: error: stray '\225' in program
sketch_oct10a:5:3: error: stray '\260' in program
sketch_oct10a:5:4: error: stray '\345' in program
sketch_oct10a:5:5: error: stray '\255' in program
sketch_oct10a:5:6: error: stray '\227' in program
sketch_oct10a:5:8: error: stray '\346' in program
sketch_oct10a:5:9: error: stray '\225' in program
sketch_oct10a:5:10: error: stray '\260' in program
sketch_oct10a:5:11: error: stray '\345' in program
sketch_oct10a:5:12: error: stray '\255' in program
sketch_oct10a:5:13: error: stray '\227' in program
sketch_oct10a:11:16: error: stray '\346' in program
sketch_oct10a:11:17: error: stray '\225' in program
sketch_oct10a:11:18: error: stray '\260' in program
sketch_oct10a:11:19: error: stray '\345' in program
sketch_oct10a:11:20: error: stray '\255' in program
sketch_oct10a:11:21: error: stray '\227' in program
sketch_oct10a:1:11: error: expected unqualified-id before '=' token
F:\我的文档\Arduino\sketch_oct10a\sketch_oct10a.ino: In function 'void setup()':
sketch_oct10a:5:7: error: expected primary-expression before '=' token
exit status 1
stray '\346' in program
jmkl128 发表于 2021-10-10 17:23
我下载了,咋变异不通过呢?正在编译项目...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os...
是不是版本不对?
不知道问题出在哪里?提示,有不能识别的变量。
这和编译器有关,和aduino无关 jmkl128 发表于 2021-10-11 05:39
不知道问题出在哪里?提示,有不能识别的变量。
是不是因为我电脑上装VS2019的原因 Highnose 发表于 2021-10-17 16:09
这和编译器有关,和aduino无关
这个明白,难道我的支持中文是因为我装VS2019的原因?Arduino 理论上讲应当自己有自己的编译器呀。怎么我的就支持中文了呢?搞不清楚,请大神指教
页:
[1]
2