v1
Dependents: ACC_LCD_541_Goniometer_Dorian_Folie
Fork of SLCD by
SLCD.h@1:1579bcd31410, 2014-01-20 (annotated)
- Committer:
- star297
- Date:
- Mon Jan 20 21:08:32 2014 +0000
- Revision:
- 1:1579bcd31410
- Parent:
- 0:d04758e76d5b
- Child:
- 3:f70873bc6121
added functions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sissors | 0:d04758e76d5b | 1 | #ifndef SLCD_H |
Sissors | 0:d04758e76d5b | 2 | #define SLCD_H |
Sissors | 0:d04758e76d5b | 3 | |
Sissors | 0:d04758e76d5b | 4 | #include "mbed.h" |
Sissors | 0:d04758e76d5b | 5 | |
star297 | 1:1579bcd31410 | 6 | |
Sissors | 0:d04758e76d5b | 7 | class SLCD : public Stream { |
Sissors | 0:d04758e76d5b | 8 | public: |
Sissors | 0:d04758e76d5b | 9 | SLCD(); |
Sissors | 0:d04758e76d5b | 10 | |
Sissors | 0:d04758e76d5b | 11 | void init(); |
star297 | 1:1579bcd31410 | 12 | void EnablePins(); |
star297 | 1:1579bcd31410 | 13 | void LCD_Write_Char(char lbValue); |
star297 | 1:1579bcd31410 | 14 | void SetBackplanes(void); // reconfigure COM to default values |
star297 | 1:1579bcd31410 | 15 | void LCD_Home (void); |
star297 | 1:1579bcd31410 | 16 | void LCD_Contrast (uint8_t lbContrast); |
star297 | 1:1579bcd31410 | 17 | void LCD_All_Segments_ON (void); |
star297 | 1:1579bcd31410 | 18 | void LCD_All_Segments_OFF (void); |
star297 | 1:1579bcd31410 | 19 | void DP1_ON (void); |
star297 | 1:1579bcd31410 | 20 | void DP1_OFF (void); |
star297 | 1:1579bcd31410 | 21 | void DP2_ON (void); |
star297 | 1:1579bcd31410 | 22 | void DP2_OFF (void); |
star297 | 1:1579bcd31410 | 23 | void DP3_ON (void); |
star297 | 1:1579bcd31410 | 24 | void DP3_OFF (void); |
star297 | 1:1579bcd31410 | 25 | void COLON_ON (void); |
star297 | 1:1579bcd31410 | 26 | void COLON_OFF (void); |
Sissors | 0:d04758e76d5b | 27 | |
Sissors | 0:d04758e76d5b | 28 | uint8_t lcd_alternate_mode; |
star297 | 1:1579bcd31410 | 29 | uint8_t bLCD_CharPosition; |
star297 | 1:1579bcd31410 | 30 | |
Sissors | 0:d04758e76d5b | 31 | virtual int _putc(int c); |
Sissors | 0:d04758e76d5b | 32 | virtual int _getc() { |
Sissors | 0:d04758e76d5b | 33 | return 0; |
star297 | 1:1579bcd31410 | 34 | } |
Sissors | 0:d04758e76d5b | 35 | }; |
Sissors | 0:d04758e76d5b | 36 | #endif |