Once upon a time.....
..... I remember reading a story in "Summer Weekly Reader" (I think by Isaac Asimov) about a robot that told stories to the young boy who owned it. Mostly fairy tales, till one of the boy's friends loaded a tape with more modern info like spaceships (and robots!).
Now, I don't have that robot... but I have a Neo Trinkey and CircuitPython - that's more than enough.
My repository TellMeAStory has six files, CircuitPython code: scifi.py and prt.py, and text data: planets.sf, aliens.sf, ships.sf, and coda.sf. Copy those to a Neo Trinkey, renaming scifi.py to code.py. When the program runs, touching "1" chooses a planet name, and touching "2" will generate a short story. In code.py, if REPL=True, you'll need to be in an editor like mu to see the text. IF you change REPL to be False, then it will use HID support to send the text as if typed on a keyboard! For example:
(touching 1)
Coxigawa
(touching 2)
SSE Wish Upon a Star lands at Coxigawa
escaping a battle and runs out of fuel
and tumbles out of control till emergency crews reach them
Suddenly a ship appears from Evuemia warning of imminent Dandaeds attack.
All power goes on on SSE Wish Upon a Star and a pirate crew from Tromia NS8 swoops in to steal it.
Planets, Aliens, and Ship names were generated on fantasynamegenerators.com - you can edit the lists with your own choices. And you can rewrite the story elements to your own liking!
[Note: updated to work with CircuitPython 9.x. I moved the lists of aliens, ships and planets to external files to avoid memory allocation problems. Updated to improve formatting and added coda.sf file to attach another twist to the story.]
This page (Tell me a story, Neo Trinkey!) was last updated on September 07, 2025.