This crate provides a type-safe API for working with the Adafruit Metro M0 board.
Check out the repository for examples:
https://github.com/wez/atsamd21-rs/tree/master/gemma_m0/examples