UltiBlox DisplayValueNull Library
Provides no-operation (no-op) implementations of display methods for scenarios without a display.
UltiBlox on GitHub | UltiBlox Home
Overview
The DisplayValueNull library implements the same method signatures as the DisplayValueLCD and DisplayValueOLED libraries but performs no actions. This allows seamless substitution of DisplayValueNull when no display is required, without altering display-related code in your project.
Features
- Implements all display functions with no-op (no operation) behavior.
- Allows code to be display-agnostic, reducing the need for conditional display checks.
Compatibility
This library is compatible with the DisplayValueLCD and DisplayValueOLED libraries, offering interchangeable functionality for LCD, OLED, and “no display” setups.
Installation
Option 1: Arduino Library Manager Installation (Recommended)
- Open the Arduino IDE.
- Go to Tools > Manage Libraries.
- Search for UltiBlox DisplayValueNull and click Install.
- Access example sketches under File > Examples > UltiBlox DisplayValueNull.
Option 2: Manual Installation (for Development and Customization)
-
Clone the Repository:
git clone git@github.com:UltiBlox/DisplayValueNull.git ~/workspace/DisplayValueNull cd ~/workspace/DisplayValueNull
-
Prepare the Environment:
Run the prepare.sh script to set up dependencies:bash prepare.sh
-
Install the Library:
-
Copy Installation:
bash install.sh
-
Symlink Installation (for active development):
bash install-symlink.sh
-
-
Build Examples:
Compile example sketches with:bash build.sh