docs:blox:examples-display

6.4.8 Displays

BLOX can be used to to display text and graphics on a couple different I2C and SPI based monochrome displays


6.4.8.1 Wiring the display

I2C Based OLEDs (SSD1306/SH1106) are always a good choice. Easiest to wire, nice and bright, decent resolution and supports graphics


6.4.8.2 Initialize the display

Initialize the display by configuring the type, size and address (for I2C) or pin assignment (for SPI or GPIO based displays)


6.4.8.3 Clear the display

Whenever you are ready to draw a new screen, you can clear the display


6.4.8.4 Draw graphics elements on the display

You can draw various elements, on their own or even better combine them together.


6.4.8.5 Draw Images on the display

BLOX toolbox includes a Draw Custom Image block

Click the DRAW button and use your mouse to draw your own custom icons and graphics. You can change the size of the canvas as well for larger icons


6.4.8.6 Draw Bitmaps on the display

BLOX toolbox includes a Display Bitmap File block.

Click on UPLOAD IMAGE to upload your images and convert them

Click on Open Image to select the file, then play around with the settings sliders to get the desired effect


6.4.8.7 Monitor Sensor values on the display

BLOX includes two special blocks to monitor analog sensor values in real time on a display. You can use the Guage or Oscilloscope to display a sensor's value onscreen. Very useful little tools for checking expected sensor values to build out If/While blocks for Analog sensors

Gauge View Oscilloscope View

6.4.8.8 Printing Text

You can also print text

docs/blox/examples-display.txt · Last modified: 2024/08/27 12:10 by admin