-->
Page 1 of 1

D-Duino

PostPosted: Mon Aug 22, 2016 2:43 pm
by jlbachiochi
Picked up a D-Duino which is a NodeMCU and OLED on one board.

https://www.tindie.com/products/lspoplo ... -display-/

Unfortunately it looks like it uses GPIO5 and GPIO4 as the I2C. Already put ESPBASIC V3 on it and works well (cept fer da display). It would be nice for the OLED commands to accept address, SDA, and SCL.

Re: D-Duino

PostPosted: Sat Aug 27, 2016 12:38 am
by trackerj
Latest version adds the i2c.setup() function !

Will change the default pins for the i2c interface.
i2c.setup({SDA}, {SCL})

Now you can define your I2C bus pins as you wish!

For scanning the I2C bus for devices you can use the I2C_scanner code from here: http://www.esp8266.com/viewtopic.php?f=40&t=11075&start=4

Original Article is here: ESPBasic I2C_scanner example function

Re: D-Duino

PostPosted: Tue Aug 30, 2016 8:21 am
by jlbachiochi
That solves the issue with the D-Duino's display! I can now reassign the I2C pins then print to the display using the built-in OLED commands.

Code: Select alli2c.setup(5,4)
lcdbl 1
oledprint "Hello", 0, 0
wait


Great job Mike. thanks tracker.