Skip to content

Instantly share code, notes, and snippets.

@danielbank
Last active August 19, 2020 18:44
Show Gist options
  • Select an option

  • Save danielbank/ed57684273fe7746ced27f5be339b55a to your computer and use it in GitHub Desktop.

Select an option

Save danielbank/ed57684273fe7746ced27f5be339b55a to your computer and use it in GitHub Desktop.
TensorFlow MNIST on PyGamer

a bare minimum pygamer repo, you would just clone or download this and rename so people arent stuck inside the atsamd repo https://github.com/jacobrosenthal/pygamer-quickstart

Also take a look at this branch at your leisure to understand how usb and rtic and neopixels can work together, I tried to make an rtic version of each example so you could build up an understanding https://github.com/jacobrosenthal/atsamd/commit/be749d0f763222cc41070765fc8ca2d6bfc4b7b0

this is so I can give you usb tensorflow version next. really the only way to do safe concurrent programming on no STD atm

Concurrency. You cant keep a USB connection unless you constantly poll it. But you can't poll while doing inference Yes. So we can have logging of training data etc

https://github.com/atsamd-rs/atsamd/blob/master/boards/pygamer/examples/button_rtic.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment