File tree Expand file tree Collapse file tree 6 files changed +24
-6
lines changed Expand file tree Collapse file tree 6 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package main
44
55import "machine"
66
7- // Replace neo in the code below to match the pin
7+ // Replace neo and led in the code below to match the pin
88// that you are using if different.
99var neo = machine .D2
10+ var led = machine .LED
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package main
55import "machine"
66
77// This is the pin assignment for the Digispark only.
8- // Replace neo in the code below to match the pin
8+ // Replace neo and led in the code below to match the pin
99// that you are using if different.
1010var neo machine.Pin = 0
11+ var led = machine .LED
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import (
1515var leds [10 ]color.RGBA
1616
1717func main () {
18- led := machine .LED
1918 led .Configure (machine.PinConfig {Mode : machine .PinOutput })
2019
2120 neo .Configure (machine.PinConfig {Mode : machine .PinOutput })
Original file line number Diff line number Diff line change 1- // +build !digispark,!arduino
1+ // +build !digispark,!arduino,!qtpy
22
33package main
44
55import "machine"
66
7- // Replace neo in the code below to match the pin
7+ // Replace neo and led in the code below to match the pin
88// that you are using if different.
99var neo machine.Pin = machine .NEOPIXELS
10+ var led = machine .LED
Original file line number Diff line number Diff line change 1+ // +build qtpy
2+
3+ package main
4+
5+ import "machine"
6+
7+ // Replace neo and led in the code below to match the pin
8+ // that you are using if different.
9+ var neo machine.Pin = machine .NEOPIXELS
10+ var led = machine .NoPin
11+
12+ func init () {
13+ pwr := machine .NEOPIXELS_POWER
14+ pwr .Configure (machine.PinConfig {Mode : machine .PinOutput })
15+ pwr .High ()
16+ }
Original file line number Diff line number Diff line change 1- // +build atsamd51
1+ // +build atsamd51 atsame5x
22
33package ws2812
44
You can’t perform that action at this time.
0 commit comments