| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Data Structures | Macros
LCDKeypad.h File Reference

Go to the source code of this file.

## Data Structures
class | LCDKeypad

## Macros
#define | KEYPAD_NONE -1
#define | KEYPAD_RIGHT 0
#define | KEYPAD_UP 1
#define | KEYPAD_DOWN 2
#define | KEYPAD_LEFT 3
#define | KEYPAD_SELECT 4
#define | WRITE_DEGREE_C()
| Macros used to print simultaneously on LCD and serial port. More...
#define | CLEAR_SCREEN()
| clear screen More...
#define | NEWLINE() { if (lcd->foundLCD) lcd->setCursor(0, 1); if (lcd->EnableSerialOutput) Serial.println(); }
| print newline More...
#define | PRINTSCREEN(A) { if (lcd->foundLCD) lcd->print(A); if (lcd->EnableSerialOutput) Serial.print(A); }
| print value / text More...
#define | PRINTSCREEN2(A, B) { if (lcd->foundLCD) lcd->print(A,B); if (lcd->EnableSerialOutput) Serial.print(A,B); }
| print formatted value More...
#define | SCREENSETCURSOR(A, B) { if (lcd->foundLCD) lcd->setCursor(A,B); if (lcd->EnableSerialOutput) Serial.print(' '); }
| move cursor More...

## Macro Definition Documentation

## ◆ CLEAR_SCREEN

#define CLEAR_SCREEN | ( |  | ) |

Value:
{ if (lcd->foundLCD) { \
lcd->clear(); \
lcd->display(); \
lcd->setCursor(0, 0);} \
if (lcd->EnableSerialOutput) Serial.println(); }
lcd
LCDKeypad * lcd
pointer to the LCD keypad object
Definition: DC2574A_KIT.ino:275
LCDKeypad::foundLCD
boolean foundLCD
Definition: LCDKeypad.h:62
LCDKeypad::EnableSerialOutput
boolean EnableSerialOutput
Definition: LCDKeypad.h:63

clear screen

Definition at line 30 of file LCDKeypad.h.

## ◆ KEYPAD_DOWN

#define KEYPAD_DOWN 2

Definition at line 13 of file LCDKeypad.h.

## ◆ KEYPAD_LEFT

#define KEYPAD_LEFT 3

Definition at line 14 of file LCDKeypad.h.

## ◆ KEYPAD_NONE

#define KEYPAD_NONE -1

Definition at line 10 of file LCDKeypad.h.

## ◆ KEYPAD_RIGHT

#define KEYPAD_RIGHT 0

Definition at line 11 of file LCDKeypad.h.

## ◆ KEYPAD_SELECT

#define KEYPAD_SELECT 4

Definition at line 15 of file LCDKeypad.h.

## ◆ KEYPAD_UP

#define KEYPAD_UP 1

Definition at line 12 of file LCDKeypad.h.

## ◆ NEWLINE

#define NEWLINE | ( |  | ) | { if (lcd->foundLCD) lcd->setCursor(0, 1); if (lcd->EnableSerialOutput) Serial.println(); }

print newline

Definition at line 36 of file LCDKeypad.h.

## ◆ PRINTSCREEN

#define PRINTSCREEN | ( |  | A | ) | { if (lcd->foundLCD) lcd->print(A); if (lcd->EnableSerialOutput) Serial.print(A); }

print value / text

Parameters

  A | value / text to be written

Definition at line 39 of file LCDKeypad.h.

## ◆ PRINTSCREEN2

#define PRINTSCREEN2 | ( |  | A,
|  |  | B
| ) |  | { if (lcd->foundLCD) lcd->print(A,B); if (lcd->EnableSerialOutput) Serial.print(A,B); }

print formatted value

Parameters

  A | value
  B | formatting argument

Definition at line 43 of file LCDKeypad.h.

## ◆ SCREENSETCURSOR

#define SCREENSETCURSOR | ( |  | A,
|  |  | B
| ) |  | { if (lcd->foundLCD) lcd->setCursor(A,B); if (lcd->EnableSerialOutput) Serial.print(' '); }

move cursor

Parameters

  A | column
  B | row

Definition at line 47 of file LCDKeypad.h.

## ◆ WRITE_DEGREE_C

#define WRITE_DEGREE_C | ( |  | ) |

Value:
{ if (lcd->foundLCD) {lcd->write((uint8_t)0); lcd->print('C');} \
if (lcd->EnableSerialOutput) {Serial.write((uint8_t)176); Serial.print('C');} }
lcd
LCDKeypad * lcd
pointer to the LCD keypad object
Definition: DC2574A_KIT.ino:275
LCDKeypad::foundLCD
boolean foundLCD
Definition: LCDKeypad.h:62
LCDKeypad::EnableSerialOutput
boolean EnableSerialOutput
Definition: LCDKeypad.h:63

Macros used to print simultaneously on LCD and serial port.

writes degree C sign

Definition at line 26 of file LCDKeypad.h.