google / periph

Older version of periph, see new version at https://github.com/periph
https://periph.io
Apache License 2.0
1.75k stars 167 forks source link

environment: migrate interface from physic.SenseEnv #417

Closed maruel closed 5 years ago

maruel commented 5 years ago

Package physic wasn't the right place to host this interface. Other interfaces (like orientation) can be added to package environment.

No behavior change, only new interfaces.

maruel commented 5 years ago

I'm not a fan of environment.SenseWeather.SenseWeather(). Better naming ideas are appreciated.

I did the implementation of all the current sensors, including SenseWeatherContinuous(), but I want to nail down the API first.

maruel commented 5 years ago

This needs to be redone, I'll open a separate CL.