How are you getting this code to synchronize with the position of the wand?

Say you wave it right and left over and over. You would want your code to start displaying letters when the wand ‘banks’ to the left side and begins to move to the right, that way as the wand sweeps left to right you draw the pixels of the letters where they are needed in space.

As I read your code there is no synchronization between the drawing and the movement.

To make something simple to try, make the top of the wand a pulled up input and tap it against a grounded post. This gives you a pulse when you’re far left; have the code wait for that pulse THEN (after a short pause) start to draw the pixels ONCE for each letter in turn, then stop and wait for the next synch pulse.

The next trick is to make a cheap acceleration sensor to make this pulse for you from only the change in stick direction.