Skip to content

Commit 4c593ed

Browse files
committed
Revised Wire library to have I2C setPins
updated with hathach requested variable naming and spacing
1 parent 73fb588 commit 4c593ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/Wire/Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TwoWire : public Stream
3939
void begin(uint8_t);
4040
void end();
4141
void setClock(uint32_t);
42-
void setPins(uint8_t pin_SDA, uint8_t pin_SCL);
42+
void setPins(uint8_t pinSDA, uint8_t pinSCL);
4343

4444
void beginTransmission(uint8_t);
4545
uint8_t endTransmission(bool stopBit);

libraries/Wire/Wire_nRF52.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ void TwoWire::setClock(uint32_t baudrate) {
127127
}
128128
}
129129

130-
void TwoWire::setPins(uint8_t pin_SDA, uint8_t pin_SCL)
130+
void TwoWire::setPins(uint8_t pinSDA, uint8_t pinSCL)
131131
{
132-
this->_uc_pinSDA = g_ADigitalPinMap[pin_SDA];
133-
this->_uc_pinSCL = g_ADigitalPinMap[pin_SCL];
132+
this->_uc_pinSDA = g_ADigitalPinMap[pinSDA];
133+
this->_uc_pinSCL = g_ADigitalPinMap[pinSCL];
134134
}
135135

136136
void TwoWire::end() {

0 commit comments

Comments
 (0)