Skip to content

Commit fa8820f

Browse files
committed
moved include of library above macro define of wire1
-this was throwing compile error because it was changing wirePort texts in the header file.
1 parent dab78c0 commit fa8820f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/Example_07_Demo_Display/Example_07_Demo_Display.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
3434
#define BMV080_ADDR 0x57 // SparkFun BMV080 Breakout defaults to 0x57
3535

36+
#include <SparkFun_Alphanumeric_Display.h> //Click here to get the library: http://librarymanager/All#SparkFun_Qwiic_Alphanumeric_Display by SparkFun
37+
HT16K33 display;
38+
#define DISPLAY_ADDRESS 0x70 // Default I2C address when A0, A1 are floating
39+
3640
// Some Dev boards have their QWIIC connector on Wire or Wire1
3741
// This #ifdef will help this sketch work across more products
3842

@@ -42,10 +46,6 @@ SparkFunBMV080I2C bmv080; // Create an instance of the BMV080 class
4246
#define wirePort Wire
4347
#endif
4448

45-
#include <SparkFun_Alphanumeric_Display.h> //Click here to get the library: http://librarymanager/All#SparkFun_Qwiic_Alphanumeric_Display by SparkFun
46-
HT16K33 display;
47-
#define DISPLAY_ADDRESS 0x70 // Default I2C address when A0, A1 are floating
48-
4949
void setup()
5050
{
5151
Serial.begin(115200);

0 commit comments

Comments
 (0)