Seeed-Studio / grove.py

Python library for Seeedstudio Grove devices
MIT License
147 stars 97 forks source link

ADC of Grove Base Hat not working with reTerminal #64

Closed maubuz closed 1 week ago

maubuz commented 1 year ago

The analog to digital converter (ADC) of the [https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/](Grove Base Hat for Raspberry Pi) is no longer working after commit a4a5c9b.

To get it working, the i2c address 0x04 must be explicitly passed to the ADC class constructor:

from grove.adc import ADC
adc = ADC(address = 0x04)

My understanding is that Seeed is prioritizing a new default micro-controller for the Base Hat (change from STM32 to MM32). However, it is important to clearly inform those who have the STM32 Base Hat of the changes and how to get it working.

I suggest adding a note to the adc.py module and a note on the Base Hat's Wiki page.

is-qian commented 1 week ago

Yes, it's because the i2c address 0x0 is not available in mm32. Now it has been switched back to stm32, and I will note this problem on the wiki later.