Skip to content

Commit 19bb773

Browse files
ysoldakdeadprogram
authored andcommitted
fix println + cleanup
1 parent 69cc0b2 commit 19bb773

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/wifinina/connect/main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@ const pass = ""
1919
var (
2020

2121
// these are the default pins for the Arduino Nano33 IoT.
22-
uart = machine.UART2
23-
tx = machine.NINA_TX
24-
rx = machine.NINA_RX
25-
spi = machine.NINA_SPI
22+
spi = machine.NINA_SPI
2623

2724
// this is the ESP chip that has the WIFININA firmware flashed on it
2825
adaptor *wifinina.Device
2926
)
3027

3128
func setup() {
32-
uart.Configure(machine.UARTConfig{TX: tx, RX: rx})
3329

3430
// Configure SPI for 8Mhz, Mode 0, MSB First
3531
spi.Configure(machine.SPIConfig{
@@ -82,7 +78,7 @@ func printTime() {
8278
if err != nil {
8379
println("Unknown (error: ", err.Error(), ")")
8480
}
85-
fmt.Printf("%v\n", time.Unix(int64(t), 0))
81+
println(time.Unix(int64(t), 0).String())
8682
}
8783

8884
func printMacAddress() {

0 commit comments

Comments
 (0)