質問編集履歴
1
記載ミスの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
func main() {
|
37
37
|
rascon := raspi.NewAdaptor()
|
38
|
-
first_sensor := gpio.NewDirectPinDriver(rascon, "
|
38
|
+
first_sensor := gpio.NewDirectPinDriver(rascon, "5")
|
39
39
|
work := func() {
|
40
40
|
gobot.Every(1*time.Second, func() {
|
41
41
|
v, _ := first_sensor.DigitalRead()
|