I have not been idle. Most of my work over the last few days has been planning and sorting the data models for the hexagrams. However, i have been experimenting with bits of Python to produce the values that define the quantum states of each Hexagram line. and i have also been thinking about how best to display the results on the PiFace CAD display, and make good use of the navigation toggle and pushbuttons. I might even use the IR sensor to read inputs from a remote control keypad.
I had intended to port the code from my Psion Organiser II LZ64 as the Hexagram generation engine, but the screen is only a bit larger at 20x4 characters than the PiFaceCAD 2 at 16x2 characters, and so is a nightmare to transcribe from. Also, I lost the serial port connector ages ago, so i can't export the OPL source code files, and the 128k DataPaks have a proprietary interface. To add to the mix, i am waiting for a couple of 32GB microDSs, so that i can try out a net installer without messing up the Raspbian NOOBS SD card that came with my RPi 2.
Here are some pix to show how the program output first looked when i wrote it in the late 1980s:
First a picture of the LZ64 for those who were in nappies when it came out .
Next the power-on screen (note the vintage dot matrix LCD display).
The I Ching program is written in OPL, an interpreted language like Python and is invoked from the menu screen
Here is a sample hexagram output that i ran to show it still works:
The I Ching was conceived in ancient China as a Oracle, providing guidance in times of uncertainty. Augury was widespread in the ancient world and the interpretation below should be taken in that context. The Illuminatus books are a conspiracy theory comedy, written around the time that the world was on the brink of Armageddon. Much as i would like to, I am not going to weigh down this Blog with loads Chinese philosophy, but a few snippets are unavoidable in order to understand the project. Expect an eclectic mix of ancient and modern throughout this project.
The hexagram is split into Lower and Upper Trigrams to fit on the screen and both the 'Old' and 'New' Hexagrams are displayed. The cast or 'Old' hexagram has a Lower Trigram Tui, 'The Lake' which represents the Joyous, and an Upper Trigram, Chen 'Thunder', which represents the arousing. Together, they form Hexagram 54 - Kuei Mei 'The Marrying Maiden' Chen also represents the Eldest Son and Tui the youngest daughter. The hexagram cautions against supplanting the established order.
Changing lines in the second and fourth place advise now is not the time to act and counsel patience and holding true to the original idea you had.
The 'New Hexagram is Hexagram 24. The Rock Band Pink Floyd wrote a song about this Hexagram and called it Chapter 24. The Lyrics say: Change, Return, Success. Going and coming without error. Action brings good fortune. So it looks to beworthwhile waiting a bit rather than pushing ahead too quickly now.
That is my excuse and i am sticking to it. This week i am busy, but next week i am at home on leave and so will make more progress .