Miceuz / PlantWateringAlarm

A soil humidity level sensor based on ATTINY44. Uses capacitive sensing.
343 stars 84 forks source link

How to change default I2C Address? #15

Closed meingraham closed 5 years ago

meingraham commented 5 years ago

The default I2C address is 0x20. where on the device does one change this default? By what method?

Thank you!

Miceuz commented 5 years ago

There is an I2C register that you write a new address to: 0x01. I.e. you send two bytes to address 0x20: 0x01 and a new address. The new address takes effect after reset.