[{"element_type":"text","content":"\n        \u003cp\u003eOnce upon a time.....\u003c/p\u003e\n\u003cp\u003e..... I remember reading a story in \"Summer Weekly Reader\" (I\u0026nbsp;\u003cem\u003ethink\u003c/em\u003e 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!).\u003c/p\u003e\n\u003cp\u003eNow, I don't \u003cem\u003ehave\u003c/em\u003e that robot... but I have a Neo Trinkey \u003cem\u003eand\u0026nbsp;\u003c/em\u003eCircuitPython - that's more than enough.\u003c/p\u003e\n\u003cp\u003eMy repository \u003ca href=\"https://github.com/mrklingon/TellMeAStory\" target=\"_blank\"\u003eTellMeAStory \u003c/a\u003ehas 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,\u0026nbsp;\u003cspan\u003eif REPL=True, you'll need to be in an editor like mu to see the text. IF you change REPL to be\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eFalse\u003c/strong\u003e\u003cspan\u003e, then it will use HID support to send the text as if typed on a keyboard!\u0026nbsp;\u003c/span\u003eFor example:\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003e\u003cem\u003e\u003cstrong\u003e(touching 1)\u003c/strong\u003e\u003c/em\u003e\u003c/p\u003e\n\u003cp style=\"padding-left: 120px;\"\u003eCoxigawa\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003e\u0026nbsp;\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003e\u003cstrong\u003e\u003cem\u003e(touching 2)\u003c/em\u003e\u003c/strong\u003e\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003eSSE Wish Upon a Star lands at Coxigawa\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003eescaping a battle and runs out of fuel\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003eand tumbles out of control till emergency crews reach them\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003eSuddenly a ship appears from Evuemia warning of imminent Dandaeds attack.\u003c/p\u003e\n\u003cp style=\"padding-left: 80px;\"\u003eAll power goes on on SSE Wish Upon a Star and a pirate crew from Tromia NS8 swoops in to steal it.\u003c/p\u003e\n\u003cp\u003e\u003cspan\u003ePlanets, Aliens, and Ship names were generated on \u003ca href=\"https://fantasynamegenerators.com\" target=\"_blank\"\u003efantasynamegenerators.com\u003c/a\u003e - you can edit the lists with your own choices. And you can rewrite the story elements to your own liking!\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cspan\u003e[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.]\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n      ","metadata":{}}]