kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

OneWire bus support for Raspberry Pi #55

Open zlowred opened 8 years ago

tve commented 7 years ago

@zlowred I know your PR is a few months old.... would you mind commenting on using the (very nice) one-wire support you built vs. using kernel drivers for the devices? For example, your sample shows use of the ds18b20 sensor but the w1-therm kernel driver does that too and could be used instead.

zlowred commented 7 years ago

Built in driver doesn't allow to set resolution, save config etc. while mine does. That's the only difference if I remember correctly. I've switched to I2C sensor since then.

tve commented 7 years ago

Ah. You can actually set the resolution with the driver, but it applies to all ds18b20 sensors. Thanks for the clarification!

olliephillips commented 7 years ago

Can this be merged? Could use.

kidoman commented 7 years ago

Yea I will look at it soon.