Arduino Adafruit Flora突破板和SI1445
我正在尝试使用库中提供的测试代码设置我的新flora breakout board(这里是澄清的链接:);然而,当我去上传代码时,我收到一条错误消息,说找不到电路板。在网上查找了一些资料后,我尝试在Arduino ide上查找董事会管理器,但我找不到我需要的adafruit flora董事会的任何信息。如果有人知道如何安装adafruit flora板,或者知道一个网站来解释,我将非常感谢您的帮助。这是我找到的用于安装电路板的链接:Arduino Adafruit Flora突破板和SI1445,arduino,arduino-ide,Arduino,Arduino Ide,我正在尝试使用库中提供的测试代码设置我的新flora breakout board(这里是澄清的链接:);然而,当我去上传代码时,我收到一条错误消息,说找不到电路板。在网上查找了一些资料后,我尝试在Arduino ide上查找董事会管理器,但我找不到我需要的adafruit flora董事会的任何信息。如果有人知道如何安装adafruit flora板,或者知道一个网站来解释,我将非常感谢您的帮助。这是我找到的用于安装电路板的链接: 使用此网站找到解决方案 需要转到首选项并为adafruit f
使用此网站找到解决方案
需要转到首选项并为adafruit flora和其他板添加GitHub URL这不是adafruit技术支持网站。谢谢@事实上,我确实检查了adafruit技术支持网站,除了我在问题中包含的链接之外,找不到任何东西。相信我,我不会第一次去这个网站寻找答案。如果你真的包括测试代码和错误消息,这绝对是一个合适的问题。另外,如果你回答了自己的问题,请单独发布答案并接受(你可以自己接受自己的答案)@chrisMaggiulli谢谢你的建议!我不知道我可以回答我自己的问题。现在单击复选标记接受它。这绝对是一个恰当的问题和回答
/***************************************************
This is a library for the Si1145 UV/IR/Visible Light Sensor
Designed specifically to work with the Si1145 sensor in the
adafruit shop
----> https://www.adafruit.com/products/1777
These sensors use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
#include <Wire.h>
#include "Adafruit_SI1145.h"
Adafruit_SI1145 uv = Adafruit_SI1145();
void setup() {
Serial.begin(9600);
Serial.println("Adafruit SI1145 test");
if (! uv.begin()) {
Serial.println("Didn't find Si1145");
while (1);
}
Serial.println("OK!");
}
void loop() {
Serial.println("===================");
Serial.print("Vis: "); Serial.println(uv.readVisible());
Serial.print("IR: "); Serial.println(uv.readIR());
// Uncomment if you have an IR LED attached to LED pin!
//Serial.print("Prox: "); Serial.println(uv.readProx());
float UVindex = uv.readUV();
// the index is multiplied by 100 so to get the
// integer index, divide by 100!
UVindex /= 100.0;
Serial.print("UV: "); Serial.println(UVindex);
delay(1000);
}
avrdude: ser_open(): can't open device