极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14406|回复: 3

[求助] 蓝牙程序可以在ARDUINO上使用,却无法在英特尔伽利略板上使用

[复制链接]
发表于 2016-1-25 00:39:42 | 显示全部楼层 |阅读模式
  char number;
void setup()
{
Serial.begin(9600);
pinMode(9,OUTPUT);
}
void loop()
{
if(Serial.available())
{
number = Serial.read();
Serial.println(number);
if(number=='A')
{digitalWrite(9,HIGH);}
if(number=='B')
{digitalWrite(9,LOW);}
}

}



蓝牙模块HC06和LED灯(接9引脚)  在ARDUINO UNO上面可以正常工作

然后拆开装在英特尔伽利略板上后,蓝牙模块无法使用了,这是怎么回事?2个板使用方法不是基本一样吗
回复

使用道具 举报

 楼主| 发表于 2016-1-26 07:12:33 | 显示全部楼层
DDDDDDDDDDD
回复 支持 反对

使用道具 举报

发表于 2017-3-19 20:34:50 | 显示全部楼层
确实,好多库在伽利略板子上编译都出错
Arduino:1.6.0 (Windows XP), 板:"Intel® Galileo Gen2"

Build options changed, rebuilding all

Error while compiling: missing 'recipe.S.o.pattern' configuration parameter

  报告将会包含更多的信息
  "Show verbose output during compilation"
  在 文件>首选项 中启用
回复 支持 反对

使用道具 举报

发表于 2017-3-19 23:03:18 | 显示全部楼层
建议用软件串口softwareserial或者mega板的Serial2,不建议占用Serial。尤其是intel板3.3v接口。这样并在编程端口很有可能连程序都下载不了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-9 04:03 , Processed in 0.036133 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表