-2
\$\begingroup\$

I am new to micro controllers and I have problem with understanding and connecting I2C devices to Attiny85 digiSpark micro controller.

According to this picture SDA and SCL are on the same pin and I am confused how can I connect any i2c device to this controller. Please can somebody help me in order to achieve this?

To be more specific, I have oled display like this one and I want to connect it to digispark.

If somebody can help me I will appreciate that! Thanks

\$\endgroup\$
  • 1
    \$\begingroup\$ SCK is a name of the clock signal in SPI protocol. SCL is the clock in the I2C. This pin is just multiplexed. I2C is using two signals SCL/SDA only (Well, connecting GND would be a good idea too). \$\endgroup\$ – Eugene Sh. Jul 4 '17 at 14:01
  • \$\begingroup\$ sorry miss typed. I just realized that I made mistake with pinouts. Can you please help me with documentation for connection digispark and oled display? There are no concrete results when I am googling :? \$\endgroup\$ – hogar Jul 4 '17 at 14:06
  • \$\begingroup\$ So on the picture SCL and SDA are on different pins. \$\endgroup\$ – Eugene Sh. Jul 4 '17 at 14:07
0
\$\begingroup\$

I'm not sure why the linked image shows SCL and SDA on the same pin.

If you look at the data sheet for the Attiny on page 60 you can see that SDA is on the PBO pin (D0 on the linked picture).

enter image description here

\$\endgroup\$
  • \$\begingroup\$ Kevin, I made a mistake. I have misplaced SCL with SCK. Thanks for this explanation anyway. \$\endgroup\$ – hogar Jul 4 '17 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.