Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bettercom #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Adafruit_VEML6075.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@

Adafruit_VEML6075 uv = Adafruit_VEML6075();

// setup function
void setup() {
Serial.begin(115200);
Serial.println("VEML6075 Full Test");
if (! uv.begin()) {
// failsafe
Serial.println("Failed to communicate with VEML6075 sensor, check wiring?");
}
// let user know that the sensor is found
Serial.println("Found VEML6075 sensor");

// Set the integration constant
Expand Down Expand Up @@ -74,6 +76,7 @@ void setup() {


void loop() {
// loop that constantly reads values
Serial.print("Raw UVA reading: "); Serial.println(uv.readUVA());
Serial.print("Raw UVB reading: "); Serial.println(uv.readUVB());
Serial.print("UV Index reading: "); Serial.println(uv.readUVI());
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Adafruit_VEML6075

Code for Adafruit_VEML6075 sensor. Senses UVA and UVB, also writes UV index.

Repository also includes an ino file that is useful for the weather balloon