Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SLCD Class Reference
SLCD peripheral of the FRDM-KL46Z
Inherits mbed::Stream and supports the majority of Stream functions.
More...
#include <SLCD.h>
Public Member Functions | |
SLCD () | |
Construct an SLCD object. | |
void | Home () |
Move the SLCD cursor to the first character. | |
void | Contrast (uint8_t lbContrast) |
Set contrast. | |
void | clear () |
Turn off all segments. | |
void | DP (int pos, bool on) |
Turn a decimal point on or off. | |
void | Colon (bool on) |
Turn the colon symbol on or off. | |
Data Fields | |
uint8_t | CharPosition |
Current cursor position. |
Detailed Description
SLCD peripheral of the FRDM-KL46Z
Inherits mbed::Stream and supports the majority of Stream functions.
#include "mbed.h" #include "SLCD.h" SLCD slcd; main() { slcd.Home(); // Moves cursor to position 0 (start) slcd.printf("1.2.3.4"); // Standard printf function, only characters in ASCII_TO_WF_CODIFICATION_TABLE will display // Dots printed using decimal points slcd.putc('A'); // Prints a single character while(1); // Wait forever }
Definition at line 51 of file SLCD.h.
Constructor & Destructor Documentation
Member Function Documentation
void Contrast | ( | uint8_t | lbContrast ) |
void DP | ( | int | pos, |
bool | on | ||
) |
Field Documentation
uint8_t CharPosition |
Generated on Fri Jul 15 2022 12:15:37 by
