1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

us020: added close method

This commit is contained in:
Karan Misra 2014-01-08 20:18:40 +05:30
parent d1e0e00ff7
commit ec8a223b13
2 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import (
func main() {
rangeFinder := us020.New(10, 9)
defer rangeFinder.Close()
for {
distance, err := rangeFinder.Distance()