Skip to content

Commit 336a5c8

Browse files
committed
removed I2C from i2c classname - just make the default be i2c, which is qwiic... SPI is a *special* case
1 parent 5bf7079 commit 336a5c8

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

examples/Example_01_BasicReadings/Example_01_BasicReadings.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
2828
#include <Wire.h>
2929

30-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
30+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3131
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3232

3333
// Some Dev boards have their QWIIC connector on Wire or Wire1

examples/Example_02_DutyCycle/Example_02_DutyCycle.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <Wire.h>
2828
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
2929

30-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
30+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3131
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3232

3333
// Some Dev boards have their QWIIC connector on Wire or Wire1

examples/Example_03_Interrupt/Example_03_Interrupt.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <Wire.h>
3232
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
3333

34-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
34+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3535
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3636
#define IRQ_Pin 14
3737

examples/Example_05_Parameters/Example_05_Parameters.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <Wire.h>
3939
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
4040

41-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
41+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
4242
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
4343

4444
// Some Dev boards have their QWIIC connector on Wire or Wire1

examples/Example_06_TwoSensors/Example_06_TwoSensors.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
3434
#include <Wire.h>
3535

36-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
36+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3737
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3838

39-
SparkFunBMV080I2C bmv080_2; // Create an instance of the BMV080 class
39+
SparkFunBMV080 bmv080_2; // Create an instance of the BMV080 class
4040
#define BMV080_ADDR2 0x56 // AB0 Jumper set to 0
4141

4242
bool newDataAvailable = false; // Flag to indicate new data is available

examples/Example_07_Demo_Alphanumeric/Example_07_Demo_Alphanumeric.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
3131
#include <Wire.h>
3232

33-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
33+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3434
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3535

3636
#include <SparkFun_Alphanumeric_Display.h> //Click here to get the library: http://librarymanager/All#SparkFun_Qwiic_Alphanumeric_Display by SparkFun

examples/Example_08_Demo_Oled/Example_08_Demo_Oled.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
3535
#include <Wire.h>
3636

37-
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
37+
SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
3838
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3939

4040
float pm1Value = 0.0; // PM1 value - global so we can update it in the loop and

keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Class
55
#########################################################
66

7-
SparkFunBMV080I2C KEYWORD1
7+
SparkFunBMV080 KEYWORD1
88
SparkFunBMV080SPI KEYWORD1
99

1010
#########################################################

src/SparkFun_BMV080_Arduino_Library.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file SparkFun_BMV080_Arduino_Library.h
33
* @brief SparkFun BMV080 Library header file
44
*
5-
* This file implements the SparkFunBMV080I2C and SparkFunBMV080SPI classes,
5+
* This file implements the SparkFunBMV080 and SparkFunBMV080SPI classes,
66
* for use with the SparkFun BMV080 sensor qwiic breakout board, HW version v01.
77
*
88
* @author Pete Lewis
@@ -37,7 +37,7 @@ SET_LOOP_TASK_STACK_SIZE(60 * 1024); // 60KB
3737
*
3838
* @see sfDevBMV080
3939
*/
40-
class SparkFunBMV080I2C : public sfDevBMV080
40+
class SparkFunBMV080 : public sfDevBMV080
4141
{
4242
public:
4343
/**

0 commit comments

Comments
 (0)