Revised Wire library to have I2C setPins
updated with hathach requested variable naming and spacing
This commit is contained in:
1 parent
73fb5887f5
commit
4c593ed216
2 files changed
+4
-4
No files matched your search
@@ -39,7 +39,7 @@ class TwoWire : public Stream
|
||||
void begin(uint8_t);
|
||||
void end();
|
||||
void setClock(uint32_t);
|
||||
void setPins(uint8_t pin_SDA, uint8_t pin_SCL);
|
||||
void setPins(uint8_t pinSDA, uint8_t pinSCL);
|
||||
|
||||
void beginTransmission(uint8_t);
|
||||
uint8_t endTransmission(bool stopBit);
|
||||
|
||||
@@ -127,10 +127,10 @@ void TwoWire::setClock(uint32_t baudrate) {
|
||||
}
|
||||
}
|
||||
|
||||
void TwoWire::setPins(uint8_t pin_SDA, uint8_t pin_SCL)
|
||||
void TwoWire::setPins(uint8_t pinSDA, uint8_t pinSCL)
|
||||
{
|
||||
this->_uc_pinSDA = g_ADigitalPinMap[pin_SDA];
|
||||
this->_uc_pinSCL = g_ADigitalPinMap[pin_SCL];
|
||||
this->_uc_pinSDA = g_ADigitalPinMap[pinSDA];
|
||||
this->_uc_pinSCL = g_ADigitalPinMap[pinSCL];
|
||||
}
|
||||
|
||||
void TwoWire::end() {
|
||||
|
||||
Reference in new issue
Block a user