AVR128DA32 Feather board


#1

This is an open-source Feather-format board that you can build yourself. It’s based on the Microchip AVR128DA32, and runs uLisp:

It runs at 24MHz with 16KB of RAM and 128KB of flash, and includes a MicroSD card socket, LED, and NeoPixel RGB LED. It can be powered through the USB port, or from a LiPo battery with charging through the USB port.

For full details see AVR128DA32 Feather Board on Technoblogy.

Example

As an example of using the AVR128DA32 board, here’s a variant of the simple Blink program in Lisp.

The AVR128DA32 Feather board has a red LED connected to pin 7. You can flash “SOS” in morse code with the following program:

(defun blink ()
  (let ((message #*10101000111011101110001010100000001))
    (pinmode :led-builtin :output)
    (loop
     (dotimes (i (length message))
       (digitalwrite :led-builtin (aref message i))
       (delay 250)))))

This uses a Lisp bit array to specify the sequence of dots and dashes. Run it by typing:

(blink)

Exit from the program by entering ~ followed by return.

You can save the blink program to EEPROM or SD card by typing the command:

(save-image)

You can now load it again after a reset by typing:

(load-image)