Arduino Zero

The Arduino Zero is based on the Atmel SAMD21 ARM Cortex M0+ CPU, with 256 KB flash memory, 32 KB RAM, and a 48 MHz clock:

ArduinoZero.jpg

LEDs

Like the Arduino Due, the Arduino Zero has an orange LED connected to the digital pin 13 which you can flash with the following program:

(defun blink (x)
  (pinmode 13 t)
  (digitalwrite 13 x)
  (delay 1000)
  (blink (not x)))

Run it by typing:

(blink t)

Pin 13 can also be used as an analogue pin, so you can pulsate the orange LED slowly on and off with the program:

(defun pulse ()
  (let (down)
    (loop
     (dotimes (x 256) 
       (delay 5) 
       (analogwrite 13 (if down (- 255 x) x)))
     (setq down (not down)))))

Run it by typing:

(pulse)

Exit from either program by entering ~.

Wemos SAMD21 M0

The Wemos SAMD21 M0 board is compatible with the Arduino Zero M0 [1]:

WemosM0.jpg

To reduce cost it has only one programming port, and no debug port. Note that earlier versions of this board didn't seem to talk to the Arduino IDE correctly (and incidentally, had an annoyingly bright red power LED). Recent boards seem to work fine (and have a nice faint power LED).


  1. ^ Wemos SAMD21 M0 board on Banggood.