Fix typo and move initialization of neo to init()

This commit is contained in:
sago35
2024-05-04 23:32:27 +09:00
committed by Ron Evans
parent 5eeba138a4
commit bb0e6b8ba8
4 changed files with 17 additions and 11 deletions
+6 -4
View File
@@ -4,7 +4,9 @@ package main
import "machine"
// This is the pin assignment for the Digispark only.
// Replace neo and led in the code below to match the pin
// that you are using if different.
var neo machine.Pin = 0
func init() {
// This is the pin assignment for the Digispark only.
// Replace neo and led in the code below to match the pin
// that you are using if different.
neo = machine.Pin(0)
}