This is the quick start guide for the Monochrome Graphics service, with step-by-step instructions on how to configure and use it for a specific use case.
Basic usage of the graphics service
This use case will demonstrate initializing the mono graphics service and then draw a black line on the screen from coordinates X=10, Y=10 to X=20, Y=20.
Usage steps
Example code
Add to, e.g., the main function in the application C-file:
Workflow
- Initialize system:
- Initialize monochrome graphics service
- Note
- This will call the init function for the low level display controller driver and intialize the screen to a cleared background.
- Draw a line from 10,10 to 20,20:
- Note
- This uses GFX_PIXEL_SET to set the display pixels on the line; other options can be found in gfx_mono_color.