MX682X / Rewritten_Wire_for_DxCore

A rewritten Wire library for the DxCore and megaTinyCore
0 stars 1 forks source link

Fix some bitmasks and the check for pullups with Wire1 #1

Closed simengangstad closed 3 years ago

simengangstad commented 3 years ago

Tested on a avr128da48 and avr128db64. TWI1 is mostly working fine. Had some issues with pin configuration, should be fixed now in the PR. Have tested in non-dual mode with usePullups, pins and swap in all the configurations. I've tested against a range of other devices with I2C interfaces and in a loopback on the da48, where Wire1 was acting as the master and Wire as the slave.

I've not touched on anything with dual mode yet, I imagine you would have to add an extra if statement for every pin configuration?