arduino due 无法编译程序
我在做一个灵感来自于3D打印机的起重机,想用blinker控制电机和舵机,蓝牙ble接入,同样程序在uno上可以编译上传,但是在due上无法编译,我看论坛有人说是编程器的问题,换了编程器还是不行,迷……代码如下:
#define BLINKER_BLE
#define ENA_one 3
#define in1_one 2
#define in2_one 4
#define ENA_two 5
#define in3_two 7
#define in4_two 8
#define ENA_three 6
#define in1_three 10
#define in2_three 11
#define ENA_four 9
#define in3_four 12
#define in4_four 13
#include <Blinker.h>
BlinkerButton Button1("btn-abc");
BlinkerButton Button2("btn-fic");
BlinkerButton Button3("btn-01g");
BlinkerButton Button4("btn-8xa");
BlinkerButton Button5("btn-d91");
BlinkerButton Button6("btn-oy9");
BlinkerButton Button7("btn-574");
BlinkerButton Button8("btn-o2j");
BlinkerButton Button9("btn-bf1");
BlinkerButton Button10("btn-or9");
BlinkerNumber Number1("num-abc");
int counter = 0;
int sudu=100;
int suduxie=120;
int suduweitiao=111;
int suduxieweitiao=131;
void forward();
void backward();
void _stop();
//void fanzhuan();
void dianjichushihua();
void nishizheng();
void shunshizheng();
void left();
void right();
void zuoshang();
void youxia();
void zuoxia();
void youshang();
void button1_callback(const String & state);
void button2_callback(const String & state);
void button3_callback(const String & state);
void button4_callback(const String & state);
void button5_callback(const String & state);
void button6_callback(const String & state);
void button7_callback(const String & state);
void button8_callback(const String & state);
void button9_callback(const String & state);
void button10_callback(const String & state);
void dataRead(const String & data)
{
BLINKER_LOG("Blinker readString: ", data);
counter++;
Number1.print(counter);
}
void setup()
{
Serial.begin(9600);
BLINKER_DEBUG.stream(Serial);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
Blinker.begin(A1,A0);
Blinker.attachData(dataRead);
Button1.attach(button1_callback);
Button2.attach(button2_callback);
Button3.attach(button3_callback);
Button4.attach(button4_callback);
Button5.attach(button5_callback);
Button6.attach(button6_callback);
Button7.attach(button7_callback);
Button8.attach(button8_callback);
Button9.attach(button9_callback);
Button10.attach(button10_callback);
dianjichushihua();
}
void loop()
{
Blinker.run();
}
//………………………………………………函数定义……………………………………
void dianjichushihua()
{
pinMode(ENA_one,OUTPUT);
pinMode(in1_one,OUTPUT);
pinMode(in2_one,OUTPUT);
pinMode(ENA_two,OUTPUT);
pinMode(in3_two,OUTPUT);
pinMode(in4_two,OUTPUT);
//pinMode(xinhao_two,INPUT);
pinMode(ENA_three,OUTPUT);
pinMode(in1_three,OUTPUT);
pinMode(in2_three,OUTPUT);
//pinMode(xinhao_three,INPUT);
pinMode(ENA_four,OUTPUT);
pinMode(in3_four,OUTPUT);
pinMode(in4_four,OUTPUT);
//pinMode(xinhao_four,INPUT);
}
void _stop()
{
analogWrite(ENA_one,0);
digitalWrite(in1_one,HIGH);
digitalWrite(in2_one,LOW);
analogWrite(ENA_two,0);
digitalWrite(in3_two,HIGH);
digitalWrite(in4_two,LOW);
analogWrite(ENA_three,0);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,0);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
/*
void fanzhuan()
{
analogWrite(ENA,sudu);
}
*/
void forward()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void nishizheng()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,LOW);
digitalWrite(in2_three,HIGH);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,LOW);
digitalWrite(in4_four,HIGH);
}
void shunshizheng()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,HIGH);
digitalWrite(in2_one,LOW);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,HIGH);
digitalWrite(in4_two,LOW);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void backward()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,HIGH);
digitalWrite(in2_one,LOW);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,HIGH);
digitalWrite(in4_two,LOW);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,LOW);
digitalWrite(in2_three,HIGH);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,LOW);
digitalWrite(in4_four,HIGH);
}
void left()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,HIGH);
digitalWrite(in4_two,LOW);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,LOW);
digitalWrite(in2_three,HIGH);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void right()
{
analogWrite(ENA_one,suduweitiao);
digitalWrite(in1_one,HIGH);
digitalWrite(in2_one,LOW);
analogWrite(ENA_two,suduweitiao);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,sudu);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,sudu);
digitalWrite(in3_four,LOW);
digitalWrite(in4_four,HIGH);
}
void zuoshang()
{
analogWrite(ENA_one,suduxieweitiao);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,0);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,0);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,suduxie);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void youxia()
{
analogWrite(ENA_one,suduxieweitiao);
digitalWrite(in1_one,HIGH);
digitalWrite(in2_one,LOW);
analogWrite(ENA_two,0);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,0);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,suduxie);
digitalWrite(in3_four,LOW);
digitalWrite(in4_four,HIGH);
}
void youshang()
{
analogWrite(ENA_one,0);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,suduxieweitiao);
digitalWrite(in3_two,LOW);
digitalWrite(in4_two,HIGH);
analogWrite(ENA_three,suduxie);
digitalWrite(in1_three,HIGH);
digitalWrite(in2_three,LOW);
analogWrite(ENA_four,0);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void zuoxia()
{
analogWrite(ENA_one,0);
digitalWrite(in1_one,LOW);
digitalWrite(in2_one,HIGH);
analogWrite(ENA_two,suduxieweitiao);
digitalWrite(in3_two,HIGH);
digitalWrite(in4_two,LOW);
analogWrite(ENA_three,suduxie);
digitalWrite(in1_three,LOW);
digitalWrite(in2_three,HIGH);
analogWrite(ENA_four,0);
digitalWrite(in3_four,HIGH);
digitalWrite(in4_four,LOW);
}
void button1_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
//digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
//Button1.icon("icon_1");
Button1.color("#FFFFFF");
Button1.text("前进");
// Button1.text("Your button name", "describe");
Button1.print();
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
forward();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
//Button1.icon("icon_1");
Button1.color("#00FF00");
Button1.text("前进");
// Button1.text("Your button name", "describe");
Button1.print();
_stop();
}
else
{
Button1.print();
}
}
void button2_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button2.text("后退");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
backward();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button2.print();
_stop();
}
else
{
Button2.print();
}
}
void button3_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button3.text("向左");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
left();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button3.print();
_stop();
}
else
{
Button3.print();
}
}
void button4_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button4.text("向右");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
right();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button4.print();
_stop();
}
else
{
Button4.print();
}
}
void button5_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button5.text("左上");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
zuoshang();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button5.print();
_stop();
}
else
{
Button5.print();
}
}
void button6_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button6.text("右上");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
youshang();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button6.print();
_stop();
}
else
{
Button6.print();
}
}
void button7_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button7.text("左下");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
zuoxia();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button7.print();
_stop();
}
else
{
Button7.print();
}
}
void button8_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button8.text("右下");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
youxia();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button8.print();
_stop();
}
else
{
Button8.print();
}
}
void button9_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button9.text("顺时针");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
shunshizheng();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button9.print();
_stop();
}
else
{
Button9.print();
}
}
void button10_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_BUTTON_PRESSED) {
BLINKER_LOG("Button pressed!");
Button10.text("逆时针");
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
//电机程序
nishizheng();
}
else if (state == BLINKER_CMD_BUTTON_RELEASED) {
BLINKER_LOG("Button released!");
Button10.print();
_stop();
}
else
{
Button10.print();
}
}
发报错 奈何col 发表于 2019-8-14 19:14
发报错
Arduino:1.8.9 (Windows 10), 开发板:"Arduino Due (Programming Port)"
In file included from C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/BlinkerSerialBLE.h:4:0,
from C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/Blinker.h:21,
from C:\Users\Handsome BF\Documents\Arduino\blinker_dipan_uno\blinker_dipan_uno.ino:22:
C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/Adapters/BlinkerSerial.h:21:32: fatal error: SoftwareSerial.h: No such file or directory
#include <SoftwareSerial.h>
^
compilation terminated.
exit status 1
为开发板 Arduino Due (Programming Port) 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
用硬件串口 奈何col 发表于 2019-8-14 22:04
用硬件串口
已改为RX1,TX1(19,18),依然报错,而且我uno用的也是软串口
Arduino:1.8.9 (Windows 10), 开发板:"Arduino Due (Programming Port)"
C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\hardware -hardware C:\Users\Handsome BF\AppData\Local\Arduino15\packages -tools C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\tools-builder -tools C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\hardware\tools\avr -tools C:\Users\Handsome BF\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\libraries -libraries C:\Users\Handsome BF\Documents\Arduino\libraries -fqbn=arduino:sam:arduino_due_x_dbg -vid-pid=0X2341_0X003D -ide-version=10809 -build-path C:\Users\HANDSO~1\AppData\Local\Temp\arduino_build_286104 -warnings=none -build-cache C:\Users\HANDSO~1\AppData\Local\Temp\arduino_cache_843601 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\Handsome BF\Documents\Arduino\blinker_dipan_uno\blinker_dipan_uno.ino
C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\arduino-builder -compile -logger=machine -hardware C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\hardware -hardware C:\Users\Handsome BF\AppData\Local\Arduino15\packages -tools C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\tools-builder -tools C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\hardware\tools\avr -tools C:\Users\Handsome BF\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\libraries -libraries C:\Users\Handsome BF\Documents\Arduino\libraries -fqbn=arduino:sam:arduino_due_x_dbg -vid-pid=0X2341_0X003D -ide-version=10809 -build-path C:\Users\HANDSO~1\AppData\Local\Temp\arduino_build_286104 -warnings=none -build-cache C:\Users\HANDSO~1\AppData\Local\Temp\arduino_cache_843601 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\Handsome BF\Documents\Arduino\blinker_dipan_uno\blinker_dipan_uno.ino
Using board 'arduino_due_x_dbg' from platform in folder: C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
Using core 'arduino' from platform in folder: C:\Users\Handsome BF\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
Detecting libraries used...
"C:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10809 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "C:\\Users\\HANDSO~1\\AppData\\Local\\Temp\\arduino_build_286104\\sketch\\blinker_dipan_uno.ino.cpp" -o nul
"C:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10809 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\Handsome BF\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-IC:\\Users\\Handsome BF\\Desktop\\程序和工具\\arduinoIDE-1.8.9\\libraries\\blinker-library-master\\src" "C:\\Users\\HANDSO~1\\AppData\\Local\\Temp\\arduino_build_286104\\sketch\\blinker_dipan_uno.ino.cpp" -o nul
In file included from C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/BlinkerSerialBLE.h:4:0,
from C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/Blinker.h:21,
from C:\Users\Handsome BF\Documents\Arduino\blinker_dipan_uno\blinker_dipan_uno.ino:21:
C:\Users\Handsome BF\Desktop\�������\arduinoIDE-1.8.9\libraries\blinker-library-master\src/Adapters/BlinkerSerial.h:21:32: fatal error: SoftwareSerial.h: No such file or directory
#include <SoftwareSerial.h>
^
compilation terminated.
使用 0.3.2版本的库 blinker-library-master 在文件夹: C:\Users\Handsome BF\Desktop\程序和工具\arduinoIDE-1.8.9\libraries\blinker-library-master
exit status 1
为开发板 Arduino Due (Programming Port) 编译时出错。 更新最新的库 已添加DUE可用的代码 三水 发表于 2019-8-15 11:45
更新最新的库 已添加DUE可用的代码
上传成功了,太感谢了,感谢两位大佬:victory: 三水 发表于 2019-8-15 11:45
更新最新的库 已添加DUE可用的代码
又有新问题了,设备跟app无法连接 包包大人666123 发表于 2019-8-15 15:33
又有新问题了,设备跟app无法连接
连接不正常
1. app是否能发现蓝牙
2. 如果app能发现蓝牙,debug all 看调试信息
页:
[1]
2