Catching up on posts

I haven’t posted in a while so I’ll try to catch up with this post.

My main occupation for the last three or four work sessions was to implement the program that takes in input a string, and then displays this string on the outer circle of Litspin.

My first thought was that I wanted to implement it for the simulator, but firstly it was not that interesting to have a simulation for the display of a simple string, and secondly, it would be nice if we could use Litspin to display debugging information.

For the first point, I nevertheless decided to implement it on LitControl and make it possible to display it on the simulator, because I though that it wouldn’t make sense to be able to display 3D models but not simple strings. Plus, it would allow me to check that the implementation worked correctly.

The second point implies that we will have to implement another version that will run on the HPS. This raises questions about execution time and memory space.

For now, I’ve implemented the version for the simulator, but keeping in mind the fact that I will have to adapt it later. Currently, I have a binary file that contains the colors of the pixels for each character in the picture below:

Here, each character is represented by a rectangle of 10*19 pixels.

Then, the pixels of the characters of the input string are stored in a buffer, and then it write in one file or in several, if the input is too long and the message has to scroll horizontally in order to be completely displayed. This gives the following output:

If the input is less than 10 characters long, the display stays static
When the message is too long, the message scrolls horizontally

For now, just like the 3D model, every frame is stored in a ppm file, but this process is quite slow so we will have to have another solution for the HPS version if we want to be able to display debugging information in real time.

Leave a Reply

Your email address will not be published. Required fields are marked *