-->
Page 1 of 3

i2c pins

PostPosted: Sat Mar 28, 2015 11:30 pm
by alon24
Hi,

How do I change i2c pins?
I am trying to use ssd1306, my pins are 12 and 13, I use I2C oled 0.96 from ebay

How do I init the pins and use adafruit or ug8 with my pins?

Re: i2c pins

PostPosted: Sun Mar 29, 2015 4:57 am
by alonewolfx2
you can init i2c with this command "Wire.pins(0, 2);" but u8g and adafruit library not working yet

Re: i2c pins

PostPosted: Sun Mar 29, 2015 5:36 am
by igrr
Well if the pins are 12 (sda) and 13 (scl), the command should obviously be
Code: Select allWire.pins(12,13);

Also, which "adafruit library" are you referring to? I googled quite a lot libraries by Adafruit, which one are you trying to get to work?

Re: i2c pins

PostPosted: Sun Mar 29, 2015 5:47 am
by alon24
1. I chose from examples in arduino for ssd1306

2. which i2c OLED sd1306 works? what can I use?