Hein (fub) wrote,

  • Mood:

Display headaches

The code for messages longer than 32 characters (the size of my buffers) is giving me headaches.
I have it set up so that the microcontroller sends a status character to the controlling program if it runs out of space in the receive buffer. When the receive buffer is copied into the display buffer, another statys character is sent to the controlling program, which then pushes the rest of the message into the receive buffer.

So far so good. This way, I can display arbitrarily large messages.

However, the display buffer needs to completely scroll out of the display before the receive buffer is copied into the display buffer. Which means you get six spaces in between 'chunks' of the messages. And the code for copying but retaining parts of buffers is giving me a headache.
I need to step back and write out the algorithm on paper before I go insane.

  • Friday Five & GenX

    What toys were popular when you were a kid? This was the height of the 80’s, the time of cartoons on TV pushing toys. They were expensive…

  • Small update

    Wow, I haven’t posted in over a month here. And yet I still don’t feel like I have much to say. Let’s see… – The…

  • Mock Chicken

    The Judge Dredd comics are an interesting artefact of the 1980s: it’s what British comic writers thought how the US urban landscape would…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded