hybridgroup / gobot

Golang framework for robotics, drones, and the Internet of Things (IoT)
https://gobot.io
Other
8.97k stars 1.04k forks source link

adafruit_driver.go contains shared variables and init() #1010

Closed gen2thomas closed 1 year ago

gen2thomas commented 1 year ago

e.g. motorHatAddress = 0x60, servoHatAddress = 0x40 should be splitted into a default constant and an attribute inside the struct "AdafruitMotorHatDriver"

the init function prevents activating the linter "gochecknoinits"

gen2thomas commented 1 year ago

available since v2.2.0