atsamd
atsamd copied to clipboard
Created the generic snake game (the one on the old Nokias) for the Wio Terminal
Created the generic snake game, added the example entry for the game in Cargo.toml
file under Wio_Terminal
board, added code for the game, and also an entry in the readme. Please let me know if this can be added as an example program for the Wio Terminal, or if any contributions can be added as examples for the Wio Terminal board.
@StaticESC, this is pretty cool. Thanks for the contribution. Could you just add an entry to the wio_terminal
changelog?
Nice example. pabigot/atsamd@1216fb91859e97e654a0ab140403350574da1ec6 provides a useful clue for people who are trying to figure out how to play and the screen freezes.
I apologize for not replying. I actually couldn't find my wio-terminal to test my code on so I decided to not work on it for a bit. I finally found it today cleaning my room, haha.
Changes:
- Added suggestion by @pabigot
- Made it impossible to move in the opposite direction to avoid accidental self-intersection (say you're moving in the right, cannot change direction to go left, because then you would self-intersect)
The binary builds and flashes perfectly to the wio-terminal.
Please let me know if anything else has to be done before this can be merged in.
@StaticESC, this is pretty cool. Thanks for the contribution. Could you just add an entry to the
wio_terminal
changelog?
I am not entirely sure on how to do that
@StaticESC, inside the wio_terminal
directory, there is a file called CHANGELOG.md
. Under the Unreleased
section, add a line describing the changes you made.
I added the entry in the changelog. LMK if you need any more changes. Feel free to merge the PR if all looks good.
CI is red, but going to merge anyway as the only error is a tiny, inconsequential thing in another BSP.