Arduino MKR WAN 1300: Difference between revisions

From SGMK-SSAM-WIKI
Jump to navigation Jump to search
(Created page with "== Arduino == Gonzalo has some examples on how to get it up and running on his GitHub: https://github.com/gonzalocasas/arduino-mkr-wan-1300 Just follow them and you should...")
 
 
Line 23: Line 23:
*Blink that LED  
*Blink that LED  


  import board
<syntaxhighlight lang="python">
  import digitalio
import board
  import time
import digitalio
 
import time
  led = digitalio.DigitalInOut(board.D6)
  led.direction = digitalio.Direction.OUTPUT
  while True:
      led.value = True
      time.sleep(0.5)
      led.value = False
      time.sleep(0.5)


led = digitalio.DigitalInOut(board.D6)
led.direction = digitalio.Direction.OUTPUT
while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)
</syntaxhighlight>


=== Next Steps ===
=== Next Steps ===


*Try to send something over LoRa
*Try to send something over LoRa

Latest revision as of 09:53, 29 March 2019

Arduino

Gonzalo has some examples on how to get it up and running on his GitHub:

https://github.com/gonzalocasas/arduino-mkr-wan-1300

Just follow them and you should be up and running in no time

CircuitPython

Since the you want the real fun

Installing

https://learn.adafruit.com/welcome-to-circuitpython/non-uf2-installation

  1. Install bossa(c): http://www.shumatech.com/web/products/bossa
  2. Grab the latest CircuitPython .bin (pre release 4.0.something). https://github.com/adafruit/circuitpython/releases
  3. Install using bossa(c). I had problems on Linux so i tried it on Windows in the office using the GUI tool, just think of that offset of 0x2000

What I tested

  • Blink that LED
import board
import digitalio
import time

led = digitalio.DigitalInOut(board.D6)
led.direction = digitalio.Direction.OUTPUT

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)

Next Steps

  • Try to send something over LoRa