![Picture](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.publicdomainpictures.net%2Fpictures%2F320000%2Fnahled%2Fkosmos-universum-weltall-sterne-1582712175THY.jpg&f=1&nofb=1&ipt=8ee009743c578fca4b19c3e62e275a955f989fdf26c4af40af7fd05587ca070d&ipo=images)
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.
![cosmos.jpg](https://cdn-learn.adafruit.com/user_assets/assets/000/000/097/large1024/cosmos.jpg?1678569928)