The OLED block is used to display text, sensor values, and emojis on the OLED. You can set the contents of the block to be either custom text (a maximum of 100 characters), real-time sensor values collected from the sensors (on-board or external) connected to the board, or an emoji selected from a collection of available emojis.
Here, you can select what is to be displayed on the OLED - Sensor values or Text or Emoji.
If Sensor is selected, the parameter area expands to reveal a scrolling section for further selection.
Here, you can select the sensor whose value is to be displayed
You can further select the port the sensor is connected to.
Note:
If you use an IR sensor, you would need to additionally set the mode of operation (or sensor type) to either Analog or Digital.
If you use a temperature sensor, you would need to select the unit (°C/°F)
If you use a Sharp sensor, you would need to additionally select the Sharp sensor type (from the variant
If Text is selected, the parameter area expands to reveal a scrolling section where you can type the text to be displayed, and select the font it is to be displayed in.
Here, you can select the text box to type the text to be entered.
As you type the text, you can select the font style that the text is to be displayed in.
The text type is displayed in the font selected, example, Permanent Marker here.
If Emoji is selected, the parameter area expands to reveal a horizontally scrolling section where you can select the emoji of your choice.
This code snippet displays "Motion detected" when the Motion sensor detects motion. It also turns on the buzzer for 500 milliseconds.
This code snippet displays a Snowflake emoji when the temperature (detected by the on-board Temperature sensor) drops below 5°C and also turns on the buzzer for 500 milliseconds.