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.
digitLCD Class Reference
9 digit (+ Hz character) 16 segment LCD display
using Holeck's HT1621 LCD driver.
More...
#include <digitLCD.h>
Public Member Functions | |
| void | init () |
| Initialise display. | |
| void | clear () |
| Clear Display. | |
| void | LCDon () |
| Powers on LCD bias generators. | |
| void | LCDoff () |
| Powers off LCD bias generators (low power mode) | |
| void | allsegson () |
| LCD all segments on test. | |
| void | HZon () |
| Hz symbol on. | |
| void | HZoff () |
| Hz symbol off. | |
Detailed Description
9 digit (+ Hz character) 16 segment LCD display
using Holeck's HT1621 LCD driver.
#include "mbed.h" #include "digitLCD.h" digitLCD lcd(PTC0,PTC1,PTD6); // WO, CS, DATA main() { lcd.clear(); // clears display lcd.printf("ABCDEFGHI"); // Standard printf function, All ASCII characters will display while(1){ // basic RTC clock function time_t seconds = time(NULL); strftime(timebuf, 32, "%H-%M-%S\n", localtime(&seconds)); strftime(datebuf, 32, "%a %d%b\n", localtime(&seconds)); if (n<7){lcd.printf(timebuf);} else{lcd.printf(datebuf);} if(n>10){n=0;} n++; wait(1); }
Definition at line 199 of file digitLCD.h.
Member Function Documentation
| void allsegson | ( | ) |
LCD all segments on test.
Definition at line 34 of file digitLCD.cpp.
| void clear | ( | ) |
Clear Display.
Definition at line 23 of file digitLCD.cpp.
| void HZoff | ( | ) |
Hz symbol off.
Definition at line 60 of file digitLCD.cpp.
| void HZon | ( | ) |
Hz symbol on.
Definition at line 55 of file digitLCD.cpp.
| void init | ( | ) |
Initialise display.
Definition at line 11 of file digitLCD.cpp.
| void LCDoff | ( | ) |
Powers off LCD bias generators (low power mode)
Definition at line 45 of file digitLCD.cpp.
| void LCDon | ( | ) |
Powers on LCD bias generators.
Definition at line 50 of file digitLCD.cpp.
Generated on Mon Jul 18 2022 17:33:51 by
1.7.2