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.

  • Things that happened this week

    A power interruption. We had gotten a letter from the company that manages the power lines that they’d be working on the infrastructure on…

  • Misc

    I guess a Friday Five is better than nothing. 1) What’s the best customer service experience you’ve ever had? Being loaded up in the…

  • Taking stock

    One of the biggest chores in reconstructing our living situation is putting the books in the new bookcase(s). When we brought the books and the old…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded