fix println + cleanup

This commit is contained in:
Yurii Soldak
2021-05-11 23:09:05 +02:00
committed by Ron Evans
parent 69cc0b22c4
commit 19bb773e5b
+2 -6
View File
@@ -19,17 +19,13 @@ const pass = ""
var (
// these are the default pins for the Arduino Nano33 IoT.
uart = machine.UART2
tx = machine.NINA_TX
rx = machine.NINA_RX
spi = machine.NINA_SPI
spi = machine.NINA_SPI
// this is the ESP chip that has the WIFININA firmware flashed on it
adaptor *wifinina.Device
)
func setup() {
uart.Configure(machine.UARTConfig{TX: tx, RX: rx})
// Configure SPI for 8Mhz, Mode 0, MSB First
spi.Configure(machine.SPIConfig{
@@ -82,7 +78,7 @@ func printTime() {
if err != nil {
println("Unknown (error: ", err.Error(), ")")
}
fmt.Printf("%v\n", time.Unix(int64(t), 0))
println(time.Unix(int64(t), 0).String())
}
func printMacAddress() {