Code optimization in SSD1306 driver