puuu / USIWire

USI based TWI/I2C library for Arduino
GNU Lesser General Public License v3.0
58 stars 18 forks source link

change pins Attiny85 #7

Closed dontsovcmc closed 6 years ago

dontsovcmc commented 6 years ago

I see in usi_io.h:

#  define PORT_USI_SDA PORTB0
#  define PORT_USI_SCL PORTB2
#  define PIN_USI_SDA PINB0
#  define PIN_USI_SCL PINB2

can I change them to another pins? I need

#  define PORT_USI_SDA PORTB3
#  define PORT_USI_SCL PORTB4
#  define PIN_USI_SDA PINB3
#  define PIN_USI_SCL PINB4

thanks!

puuu commented 6 years ago

Unfortunately, no. The USI IOs are hard wired and there functions SDA/SCL are fix. The pins are described in the micro controller data sheets.