Skip to content

Commit b73e41f

Browse files
committed
add wire library to test new ycm config -- works great
1 parent 1a0ee1a commit b73e41f

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

lib/FooLib/FooLib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ FooClass::FooClass() {
1515

1616
void FooClass::firstFooMethod() const {
1717
// print variable one
18+
Wire.begin();
1819
Serial.println(_variableOne);
1920
}
2021

lib/FooLib/FooLib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
#include <Arduino.h>
11+
#include <Wire.h>
1112

1213
class FooClass {
1314

src/BarProject/BarProject.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <Arduino.h>
2+
#include <Wire.h>
23
#include "BarLib.h"
34

45
BarClass BarObject;

src/FooProject/FooProject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <Arduino.h>
2+
#include <Wire.h>
23
#include "FooLib.h"
34

45
FooClass FooObject;
@@ -12,6 +13,7 @@ void setup() {
1213

1314
void loop() {
1415

16+
Serial.println("Hello world");
1517
FooObject.firstFooMethod();
1618
delay(1000);
1719
FooObject.secondFooMethod();

0 commit comments

Comments
 (0)