sparkfun / SparkFun_Bio_Sensor_Hub_Library

25 stars 33 forks source link

v1.0.6 : allow pins to be defined at begin instead of at class instantiation #24

Closed PaulZC closed 1 year ago

PaulZC commented 1 year ago

Hi @edspark ,

I'd like to add the Bio Sensor Hub to the new framework. Trouble is, having to specify the reset and mfio pins when you instantiate the class causes problems... This PR allows the pins to be defined at begin instead. Everything is backward-compatible though. I've created a new example showing how to pass the pins to begin.

Please give it a review and merge if you are happy.

Thanks! Paul