Problems can only be found in the program.
I guess it's because you didn't turn off the monitor after each display and before the next display. .
. If each bit was displayed for a longer time, say 2 milliseconds, there would be no such overview. . .
This situation will happen to many people, and it is also the same procedure in textbooks.