File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ boolean BMP085::begin(uint8_t mode) {
99 mode = BMP085_ULTRAHIGHRES;
1010 oversampling = mode;
1111// begin(int sdaPin, int sclPin, uint32_t frequency)
12- Wire.begin (13 , 12 , 100000 );
12+ Wire.begin (13 , 12 , 100000U );
1313
1414 if (read8 (0xD0 ) != 0x55 ) return false ;
1515
Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ class SSD1306Wire : public OLEDDisplay {
5555
5656
5757 bool connect () {
58- pinMode (_rst,OUTPUT);
59- digitalWrite (_rst, LOW);
60- delay (50 );
61- digitalWrite (_rst, HIGH);
62-
63- Wire. begin ( this -> _sda , this -> _scl );
64- // Let's use ~700khz if ESP8266 is in 160Mhz mode
65- // this will be limited to ~400khz if the ESP8266 in 80Mhz mode.
66- Wire. setClock ( 700000 );
67- return true ;
58+ pinMode (_rst,OUTPUT);
59+ digitalWrite (_rst, LOW);
60+ delay (50 );
61+ digitalWrite (_rst, HIGH);
62+
63+ // Let's use ~700khz if ESP8266 is in 160Mhz mode
64+ // this will be limited to ~400khz if the ESP8266 in 80Mhz mode.
65+ Wire. begin ( int ( this -> _sda ), this -> _scl , 700000U );
66+
67+ return true ;
6868 }
6969
7070 void display (void ) {
You can’t perform that action at this time.
0 commit comments