mrred128 Active Member Licensed User Longtime User Dec 2, 2017 #1 In arduino, I can initialize the wire interface with "Wire.begin(D1,D2)". I have an 8266 board with a built in OLED on a non standard I2C bus that currently can't be used with B4R.
In arduino, I can initialize the wire interface with "Wire.begin(D1,D2)". I have an 8266 board with a built in OLED on a non standard I2C bus that currently can't be used with B4R.
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2017 #2 https://www.arduino.cc/en/Reference/WireBegin Where do you see this method?
mrred128 Active Member Licensed User Longtime User Dec 3, 2017 #3 https://github.com/esp8266/Arduino/blob/master/libraries/Wire/Wire.cpp
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2017 #4 You can call Wire.Initialize and then call Wire.begin with: B4X: RunNative("StartWire", Null) B4X: #if C void StartWire(B4R::Object* o) { Wire.begin(D1, D2); } #End if
You can call Wire.Initialize and then call Wire.begin with: B4X: RunNative("StartWire", Null) B4X: #if C void StartWire(B4R::Object* o) { Wire.begin(D1, D2); } #End if