Intention
Upon completion of the exercises, I sought to extend the communicative capacity of the WiFi-connected LED by taking in text input to display on the bulbs.
Continuing with the circuit completed at the close of Exercise 3, I set about watching a couple videos about the Vail Cypher (aka Morse Code), creating a map of alphabet - dot/dash values with which to encrypt text input.
Much of the process was debugging code, which involved somewhat haphazard visits to GeeksforGeeks.org, StackOverflow, the C++ reference website (still need to understand/clarify how the underlying Particle programming language works and which languages it's similar to), and — towards the very end — consulting ChatGPT about the difference between different types of strings. (All code self-written, though.) One thing I wish I grasped more fully was the fact that characters in the language exclusively use single quotes, and strings double quotes...
After my code was in working order (though I am unsure how efficient/generous it is on the Photon 2), I tweaked the delays to more accurately reflect the cypher in use, adding a bookend() function at the start and end of each transmission of textual input to involve the second LED more.
As mentioned in my notes on the process, in future projects I'd like to clarify the basics of the programming language before fully diving in and making substantial changes — there was quite a bit of back and forth as I wasn't familiar with the syntax, though these trials were immensely helpful for me as I was motivated to push through.
Another consideration I entertained was incorporating paper to adorn the LEDs, perhaps as small flower petals, for instance. Some adjacent questions to explore, then, include circuit construction best practices and basic safety awareness.
You can upload files of up to 20MB using this form.