开源改变世界

不能在 Marlin 中包含蓝牙支持 #915

推推 grbl 2年前 (2023-02-06) 141次浏览
关闭
jstrebel 打开了这个问题 2014 年 5 月 12 日 · 11 条评论
关闭

不能在 Marlin 中包含蓝牙支持#915

jstrebel 打开了这个问题 2014 年 5 月 12 日 · 11 条评论

评论

不能在 Marlin 中包含蓝牙支持 #915

你好,
希望有人能帮助初学者。
我尝试添加下面的草图以启用带蓝牙的 Arduino/marlin。
(马林鱼版本为 1.0.0 )

这是我在编译代码时遇到的错误:
c:/users/js/desktop/mul-neu/arduino-1.0.4/hardware/tools/avr/bin/../lib/gcc/avr/4.3。 2/../../../../avr/lib/avr6/crtm2560.o: 在__vector_default': (.vectors+0xdc): relocation truncated to fit: R_AVR_13_PCREL against symbolcore.a(HardwareSerial.cpp.o) 的 .text.__vector_55 部分中定义的函数 __vector_55′

我按照此 URL 下的说明操作:http:
//gcodesim.dietzm.de/FAQ.html#bt

这是代码:

包括 SoftwareSerial.h(只是删除了括号以启用正确的 HTML 显示)

软件序列号 mySerial(65, 66); // 接收、发送

void setup()
{
// 打开串行通信并等待端口打开:
Serial.begin(9600);
while (!Serial) {
; // 等待串口连接。只有莱昂纳多需要
}
Serial.println(“Goodnight moon!”);
// 设置软件串行端口的数据速率
mySerial.begin(9600);
Serial.println(“你好,世界?”);
}
//
void loop() // 一遍又一遍地运行
{
if (mySerial.available()){
Serial.write(mySerial.read());
}
if (Serial.available()){
mySerial.write(Serial.read());
}
}