nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

Analog to digital example #101

Closed tsadowski closed 1 year ago

tsadowski commented 1 year ago

Hi, I made an analog example. There is certainly a neater solution than using a counter with the iterator but it is essentially my first rust program.

Cheers, Torsten

robyoung commented 1 year ago

Looks great, thanks @tsadowski. Could you add point to the CHANGELOG about the ADC peripheral being exposed please? Also, it looks like it needs a rustfmt.

tsadowski commented 1 year ago

A language with an official code formatter. Nice!

bors[bot] commented 1 year ago

Build succeeded: