Yet another silly program from MrKlingon.
Program cosmos.py requires ncount.py to display numbers. You can load both on a neotrinkey. If cosmos.py is saved as code.py the program runs on power up.
A 40x40 cosmos is generated with a variety of stars.
- Touching pad1 changes direction - there are 8 - (think N, NE, E, SE, S, SW, W, NW). The neotrinkey display shows a binary number for which ever is the current direction, then the current X,Y position, then displays the stars at the current 2x2 window the "ship" is at.
- Touching pad2 blinks through showing the stars for 7 steps in the current direction.
- Touching both pads together (1&2) does a display traversing through all the stars.
- Running in Thonny IDE displays current coordinates while "traversing" and names the stars.
This page (Cosmos in a NeoTrinkey!) was last updated on March 08, 2024.
Text editor powered by tinymce.