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

Updated the function types for the new spaceboard branch #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
updating example sketch with latest interface revision
  • Loading branch information
samolds committed Jun 23, 2016
commit 4bceb687a4fd33a766a04b09cbf89a8e09bec8ad
20 changes: 10 additions & 10 deletions examples/sd_card/sd_card.ino
Original file line number Diff line number Diff line change
@@ -58,8 +58,8 @@ Gyro gyro;
Luminosity luminosity;
Magnetic mag;
Temperature am_temp;
//Temperature ir_temp = Temperature(SENSORID_MLX90614);
//UVLight uv_light;
TemperatureMLX ir_temp;
UVLight uv_light;

/*
* === FUNCTION ======================================================================
@@ -80,8 +80,8 @@ void setup()
luminosity.begin();
mag.begin();
am_temp.begin();
//ir_temp.begin();
//uv_light.begin();
ir_temp.begin();
uv_light.begin();
}

/*
@@ -100,25 +100,25 @@ void loop()
luminosity.read();
mag.read();
am_temp.read();
//ir_temp.read();
//uv_light.read();
ir_temp.read();
uv_light.read();

if (LOG_CSV_DATA) {
logSensor("accel", accel);
logSensor("gyro", gyro);
logSensor("lux", luminosity);
logSensor("mag", mag);
logSensor("temp", am_temp);
//logSensor("ir", ir_temp);
//logSensor("uv", uv_light);
logSensor("ir", ir_temp);
logSensor("uv", uv_light);
} else {
binaryLogSensor(1, accel);
binaryLogSensor(3, gyro);
binaryLogSensor(6, luminosity);
binaryLogSensor(2, mag);
binaryLogSensor(4, am_temp);
//binaryLogSensor(5, ir_temp);
//binaryLogSensor(7, uv_light);
binaryLogSensor(5, ir_temp);
binaryLogSensor(7, uv_light);
}

delay(READ_INTERVAL);