File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
examples/wifinina/connect Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,13 @@ const pass = ""
1919var (
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
3128func 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
8884func printMacAddress () {
You can’t perform that action at this time.
0 commit comments