May 2019
Beginner to intermediate
452 pages
16h 34m
English
The draw_hi function uses the vline and hline methods on the oled object to draw the three lines that will make up H. After the letter H is drawn, a vertical line is drawn using vline to represent the letter I.
Calling the draw_x_boxes function will, in turn, call the animate_boxes function. The first call to the animate_boxes function draws six boxes in a diagonal direction to make the first part of the X character. The second call to animate_boxes also makes six boxes, but from a different starting position and going in a different direction. The second call will cut through the first line to form the X character.
Read now
Unlock full access