Hello Stan I tried to understand the format of the output you wanted but didn't quite understand it. The KL has turned out not to be as friendly as I thought it would be.

Fork of SLCD by Stanley Cohen

SLCD.h

Committer:
star297
Date:
2014-01-20
Revision:
1:1579bcd31410
Parent:
0:d04758e76d5b
Child:
3:f70873bc6121

File content as of revision 1:1579bcd31410:

#ifndef SLCD_H
#define SLCD_H

#include "mbed.h"


class SLCD : public Stream {
    public:
    SLCD();
    
    void init();
    void EnablePins();    
    void LCD_Write_Char(char lbValue);
    void SetBackplanes(void); // reconfigure COM to default values
    void LCD_Home (void);
    void LCD_Contrast (uint8_t lbContrast);
    void LCD_All_Segments_ON (void);    
    void LCD_All_Segments_OFF (void);
    void DP1_ON (void);
    void DP1_OFF (void);
    void DP2_ON (void);
    void DP2_OFF (void);
    void DP3_ON (void);
    void DP3_OFF (void);
    void COLON_ON (void);
    void COLON_OFF (void);
    
    uint8_t lcd_alternate_mode;
    uint8_t bLCD_CharPosition;
         
    virtual int _putc(int c);
    virtual int _getc() {
        return 0;
    }  
};
#endif