File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,14 @@ void TwoWire::begin(uint8_t address) {
49
49
sercom->enableWIRE ();
50
50
}
51
51
52
- void TwoWire::end ( ) {
52
+ void TwoWire::setClock ( uint32_t baudrate ) {
53
53
sercom->disableWIRE ();
54
+ sercom->initMasterWIRE (baudrate);
55
+ sercom->enableWIRE ();
54
56
}
55
57
56
- void TwoWire::setClock ( uint32_t frequency ) {
57
- // dummy funtion
58
+ void TwoWire::end ( ) {
59
+ sercom-> disableWIRE ();
58
60
}
59
61
60
62
uint8_t TwoWire::requestFrom (uint8_t address, size_t quantity, bool stopBit)
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class TwoWire : public Stream
38
38
void begin ();
39
39
void begin (uint8_t );
40
40
void end ();
41
- void setClock (uint32_t ); // dummy function
41
+ void setClock (uint32_t );
42
42
43
43
void beginTransmission (uint8_t );
44
44
uint8_t endTransmission (bool stopBit);
You can’t perform that action at this time.
0 commit comments