File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 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) {
4949 sercom->enableWIRE ();
5050}
5151
52- void TwoWire::end ( ) {
52+ void TwoWire::setClock ( uint32_t baudrate ) {
5353 sercom->disableWIRE ();
54+ sercom->initMasterWIRE (baudrate);
55+ sercom->enableWIRE ();
5456}
5557
56- void TwoWire::setClock ( uint32_t frequency ) {
57- // dummy funtion
58+ void TwoWire::end ( ) {
59+ sercom-> disableWIRE ();
5860}
5961
6062uint8_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
3838 void begin ();
3939 void begin (uint8_t );
4040 void end ();
41- void setClock (uint32_t ); // dummy function
41+ void setClock (uint32_t );
4242
4343 void beginTransmission (uint8_t );
4444 uint8_t endTransmission (bool stopBit);
You can’t perform that action at this time.
0 commit comments