-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate I2C function from haptics.ino
The function itself was moved into its own file for I2C to make it easier if someone else needs I2C support for other hardware in the future. Currently it's still called in the haptics.ino with the PCA9685 setup code as that is the only thing to use it.
- Loading branch information
1 parent
3b9e574
commit cfe87da
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
#include "AdvancedConfig.h" | ||
#include <Wire.h> | ||
|
||
|
||
void Setup_I2C() { | ||
Wire.begin(PIN_I2C_SDA, PIN_I2C_SCL); | ||
Serial.println("I2C Initialized"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters