File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ static const uint32_t SCK = PIN_SPI_SCK;
80
80
#define PIN_WIRE_SCL 15
81
81
#endif
82
82
83
- static const uint8_t SDA = PIN_WIRE_SDA ;
84
- static const uint8_t SCL = PIN_WIRE_SCL ;
83
+ static const uint32_t SDA = PIN_WIRE_SDA ;
84
+ static const uint32_t SCL = PIN_WIRE_SCL ;
85
85
86
86
#ifdef __cplusplus
87
87
extern "C" {
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ TwoWire::TwoWire()
39
39
_i2c.scl = digitalPinToPinName (SCL);
40
40
}
41
41
42
- TwoWire::TwoWire (uint8_t sda, uint8_t scl)
42
+ TwoWire::TwoWire (uint32_t sda, uint32_t scl)
43
43
{
44
44
_i2c.sda = digitalPinToPinName (sda);
45
45
_i2c.scl = digitalPinToPinName (scl);
46
46
}
47
47
48
48
// Public Methods //////////////////////////////////////////////////////////////
49
49
50
- void TwoWire::begin (uint8_t sda, uint8_t scl)
50
+ void TwoWire::begin (uint32_t sda, uint32_t scl)
51
51
{
52
52
_i2c.sda = digitalPinToPinName (sda);
53
53
_i2c.scl = digitalPinToPinName (scl);
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class TwoWire : public Stream {
64
64
65
65
public:
66
66
TwoWire ();
67
- TwoWire (uint8_t sda, uint8_t scl);
67
+ TwoWire (uint32_t sda, uint32_t scl);
68
68
// setSCL/SDA have to be called before begin()
69
69
void setSCL (uint32_t scl)
70
70
{
@@ -83,7 +83,7 @@ class TwoWire : public Stream {
83
83
_i2c.sda = sda;
84
84
};
85
85
void begin (bool generalCall = false );
86
- void begin (uint8_t , uint8_t );
86
+ void begin (uint32_t , uint32_t );
87
87
void begin (uint8_t , bool generalCall = false );
88
88
void begin (int , bool generalCall = false );
89
89
void end ();
You can’t perform that action at this time.
0 commit comments