This recipe will demonstrate how to use the methods that come with the SSD1306_I2C object, which will let us draw horizontal lines, vertical lines, squares, and rectangles. We can now move beyond setting individual pixels and explore drawing a wider range of shapes using the methods that come out of the box with the adafruit_ssd1306 display library.
You will find this recipe useful for when you want to draw some different shapes; for example, to build a simple user interface on the display. There is enough resolution on the display to draw a number of boxes and borders that represent different parts of your user interface.