lyusupov / SoftRF

:airplane: Multi-functional, compatible DIY general aviation proximity awareness system
GNU General Public License v3.0
777 stars 216 forks source link

SOftRF-Dongle T-Motion Board I2C not working #129

Closed drucknase closed 2 years ago

drucknase commented 2 years ago

Hardware

T-Motion_HW_web

Firmware version

own test firmware

Describe the bug

I use PlatformIO as development platform. I can upload firmware, tried with a Blink-sketch. Developed own firmware for a TTN-Tracker which works fine including the GNSS part. I tried to connect a OLED to the I2C bus on PB7 and PB6 using Wire-Library but no signal on the two pins. Studied your sketches and found that you use Wire-Lib too.

Wrote a test-sketch which use digitalWrite to PB6 and PB7 to see if I can generate some clock like signals and this works perfekt. So the port is not damaged.

But there are no I2C CLK or I2C SDA signals when I use Wire.begin(I2C_SDA,I2C_SCL) and Wire.beginTransmission(adr). Measured with an analyser.

I feel like hw pins are not mapped correct for the AS76G ASIC. Is there any trick to get I2C working?

Thanks!

lyusupov commented 2 years ago

Resolution: invalid