[{"element_type":"text","content":"\n        \u003ch1 class=\"heading-element\"\u003eSmallFriend\u003c/h1\u003e\n\u003cp\u003e\u003ca id=\"user-content-smallfriend\" class=\"anchor\" href=\"https://github.com/mrklingon/SmallFriend/tree/main#smallfriend\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eA NeoTrinkey Morse code blinker -github \u003ca href=\"https://github.com/mrklingon/SmallFriend\" target=\"_blank\"\u003erepository\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eProject files to copy to your neotrinkey:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003efriend.py - Program - rename as code.py to run on neotrinkey\u003c/li\u003e\n\u003cli\u003emorse.py - encodes text to Morse code, prints it and blinks via neopixels\u003c/li\u003e\n\u003cli\u003etolkien - a batch of Tolkien quotes\u003c/li\u003e\n\u003cli\u003ewise.py - code to select a random line from tolkien file\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eI was revisiting my earlier project\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://adafruit-playground.com/u/mrklingon/pages/teach-your-neotrinkey-morse-code\"\u003e\"Teach your NeoTrinkey Morse code!\"\u003c/a\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003eand thought it would be fun to add to it, coding a \"small friend\" that delivers messages in\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Morse_code\"\u003eMorse code\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eProject blinks some colors, then blinks out Morse for \"hello.\" Then, touch #2 and two blue neopixels blink on and off, followed by blinking one of these words at random:\u003c/p\u003e\n\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emessage1 = \"friend\"\nmessage2 = \"love\"\nmessage3 = \"joy\"\nmessage4 = \"peace\"\nmessage5 = \"hi\"\nmessage6 = \"hello\"\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eIf you touch #1 the blue \"eyes\" will wink and then one of the Tolkien quotes will be blinked out in code.\u003c/p\u003e\n\u003cp\u003eIf you run the program while running an IDE like Mu or Thonny, it will print the text and the morse code.\u003c/p\u003e\n\u003cp\u003eYou can replace the quotes in \"tolkien\" or create a new file with the text you want to have blinked out. If you create a new file, then change this line:\u003c/p\u003e\n\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e        docode(getWD(\"tolkien\"))\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eto name the new file.\u003c/p\u003e\n      ","metadata":{}}]