Activity 5: OLED Screen

Estimated completion time:

20-30 minutes

Electronic Systems: The Robot & The Codes (Page 75-78)

Link to tinkerCAD Model (LCD Screen)

The content of this link is NOT for an OLED screen but for an LCD screen. They use different coding and libraries.


https://www.tinkercad.com/things/2YRkMS5om55

Exercise Hint

To change text, you only need to repeat the following each time the text changes:


oledDisplay( 2, 0, 0);

display.println(".............");

display.println(".............");

display.println(".............");

display.display( );



Example:


void loop( ) {

oledDisplay( 2, 0, 0);

display.println(".............");

display.println(".............");

display.println(".............");

display.display( );

delay (1000);


oledDisplay( 2, 0, 0);

display.println("ABCDE");

display.println("ABCDE");

display.println("ABCDE");

display.display( );

delay (1000);

}


(P/S: This is not the complete code)