1.怎么用米思齐编51单片机
2.米思齐编译上传出错
报错:
编译中...
使用平台的 ‘generic’ 开发板,在列出的文件夹中:C:\Users\sss\Desktop\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp8266\hardware\esp8266\3.1.1
使用平台的 ‘esp8266’ 代码,在列出的文件夹中:C:\Users\sss\Desktop\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp8266\hardware\esp8266\3.1.1
"C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.1/tools/mkbuildoptglobals.py" "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\arduino-cli" 10607 "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\mixlyBuild" "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\mixlyBuild/core/build.opt" "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\testArduino/testArduino.ino.globals.h" "C:\\Users\\sss\\Desktop\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.1\\cores\\esp8266/CommonHFile.h"
Note: optional global include file 'C:\Users\�����\Desktop\mixly\mixly2.0-win32-x64\testArduino\testArduino.ino.globals.h' does not exist.
Read more at https://arduino-esp8266.readthedocs.io/en/latest/faq/a06-global-build-options.html
cc1plus.exe: fatal error: C:\Users\sss\Desktop\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h: No such file or directory
compilation terminated.
C 的替代方案:[]
ResolveLibrary(C)
-> 候选: []
构建时出错:exit status 1
已使用的平台 版本 路径
esp8266:esp8266 3.1.1 C:\Users\曹泽昕\Desktop\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp8266\hardware\esp8266\3.1.1
==编译失败==
代码
#define BLINKER_WIFI
#include <Blinker.h>
#include <Servo.h>
char auth[] = "Your Device Secret Key";
char ssid[] = "Your WiFi network SSID or name";
char pswd[] = "Your WiFi network WPA password or WEP key";
volatile int item;
BlinkerSlider slider1("huandong");
BlinkerJoystick joystick1("joy-tce");
Servo servo_15;
void slider1_callback(int32_t value) {
item = value;
Serial.println(value);
}
void joystick1_callback(uint8_t X, uint8_t Y){
item = (map(X, 0, 255, 0, 180));
Serial.println(X);
}
void setup(){
item = 0;
Blinker.begin(auth,ssid,pswd);
Serial.begin(9600);
slider1.attach(slider1_callback);
joystick1.attach(joystick1_callback);
servo_15.attach(15,500,2500);
}
void loop(){
Blinker.run();
//滑动条控制舵机
//摇杆控制舵机
servo_15.write(item);
delay(0);
}