![]() |
Repetier-Firmware
0.91
|
#include "Repetier.h"
#include <math.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
Defines | |
#define | UI_MAIN |
ENTRYMODES | |
#define | LCD_ENTRYMODE 0x04 |
#define | LCD_ENTRYMODE 0x04 |
#define | LCD_INCREASE LCD_ENTRYMODE | 0x02 |
#define | LCD_DECREASE LCD_ENTRYMODE | 0x00 |
#define | LCD_DISPLAYSHIFTON LCD_ENTRYMODE | 0x01 |
#define | LCD_DISPLAYSHIFTOFF LCD_ENTRYMODE | 0x00 |
GENERAL COMMANDS | |
#define | LCD_CLEAR 0x01 |
#define | LCD_HOME 0x02 |
DISPLAYMODES | |
#define | LCD_DISPLAYMODE 0x08 |
#define | LCD_DISPLAYON LCD_DISPLAYMODE | 0x04 |
#define | LCD_DISPLAYOFF LCD_DISPLAYMODE | 0x00 |
#define | LCD_CURSORON LCD_DISPLAYMODE | 0x02 |
#define | LCD_CURSOROFF LCD_DISPLAYMODE | 0x00 |
#define | LCD_BLINKINGON LCD_DISPLAYMODE | 0x01 |
#define | LCD_BLINKINGOFF LCD_DISPLAYMODE | 0x00 |
SHIFTMODES | |
#define | LCD_SHIFTMODE 0x10 |
#define | LCD_DISPLAYSHIFT LCD_SHIFTMODE | 0x08 |
#define | LCD_CURSORMOVE LCD_SHIFTMODE | 0x00 |
#define | LCD_RIGHT LCD_SHIFTMODE | 0x04 |
#define | LCD_LEFT LCD_SHIFTMODE | 0x00 |
Functions | |
void | beep (uint8_t duration, uint8_t count) |
Variables | |
long | ui_autoreturn_time = 0 |
UIDisplay | uid |
char | displayCache [UI_ROWS][MAX_COLS+1] |
DISPLAY_CONFIGURATION | |
#define | LCD_CONFIGURATION 0x20 |
#define | LCD_8BIT LCD_CONFIGURATION | 0x10 |
#define | LCD_4BIT LCD_CONFIGURATION | 0x00 |
#define | LCD_2LINE LCD_CONFIGURATION | 0x08 |
#define | LCD_1LINE LCD_CONFIGURATION | 0x00 |
#define | LCD_5X10 LCD_CONFIGURATION | 0x04 |
#define | LCD_5X7 LCD_CONFIGURATION | 0x00 |
#define | LCD_SETCGRAMADDR 0x40 |
#define | lcdPutChar(value) lcdWriteByte(value,1) |
#define | lcdCommand(value) lcdWriteByte(value,0) |
#define | INCREMENT_MIN_MAX(a, steps, _min, _max) a+=increment*steps;if(a<(_min)) a=_min;else if(a>(_max)) a=_max; |
const int8_t encoder_table[16] | PROGMEM = {0,0,-1,0,0,0,0,1,1,0,0,0,0,-1,0,0} |
char | printCols [MAX_COLS+1] |
void | lcdWriteNibble (uint8_t value) |
void | lcdWriteByte (uint8_t c, uint8_t rs) |
void | initializeLCD () |
UI_STRING (ui_text_on, UI_TEXT_ON) | |
UI_STRING (ui_text_off, UI_TEXT_OFF) | |
UI_STRING (ui_text_na, UI_TEXT_NA) | |
UI_STRING (ui_yes, UI_TEXT_YES) | |
UI_STRING (ui_no, UI_TEXT_NO) | |
UI_STRING (ui_print_pos, UI_TEXT_PRINT_POS) | |
UI_STRING (ui_selected, UI_TEXT_SEL) | |
UI_STRING (ui_unselected, UI_TEXT_NOSEL) | |
UI_STRING (ui_action, UI_TEXT_STRING_ACTION) |
#define INCREMENT_MIN_MAX | ( | a, | |
steps, | |||
_min, | |||
_max | |||
) | a+=increment*steps;if(a<(_min)) a=_min;else if(a>(_max)) a=_max; |
#define LCD_1LINE LCD_CONFIGURATION | 0x00 |
1 line display
#define LCD_2LINE LCD_CONFIGURATION | 0x08 |
2 line display
#define LCD_4BIT LCD_CONFIGURATION | 0x00 |
4 bits interface
#define LCD_5X10 LCD_CONFIGURATION | 0x04 |
5 X 10 dots
#define LCD_5X7 LCD_CONFIGURATION | 0x00 |
5 X 7 dots
#define LCD_8BIT LCD_CONFIGURATION | 0x10 |
8 bits interface
#define LCD_BLINKINGOFF LCD_DISPLAYMODE | 0x00 |
Blinking off
#define LCD_BLINKINGON LCD_DISPLAYMODE | 0x01 |
Blinking on
#define LCD_CLEAR 0x01 |
Clear screen
#define LCD_CONFIGURATION 0x20 |
Set function
#define LCD_CURSORMOVE LCD_SHIFTMODE | 0x00 |
Cursor move
#define LCD_CURSOROFF LCD_DISPLAYMODE | 0x00 |
Cursor off
#define LCD_CURSORON LCD_DISPLAYMODE | 0x02 |
Cursor on
#define LCD_DECREASE LCD_ENTRYMODE | 0x00 |
Set cursor move direction -- Decrease
#define LCD_DISPLAYMODE 0x08 |
Set displaymode
#define LCD_DISPLAYOFF LCD_DISPLAYMODE | 0x00 |
Display off
#define LCD_DISPLAYON LCD_DISPLAYMODE | 0x04 |
Display on
#define LCD_DISPLAYSHIFT LCD_SHIFTMODE | 0x08 |
Display shift
#define LCD_DISPLAYSHIFTOFF LCD_ENTRYMODE | 0x00 |
Display is not shifted
#define LCD_DISPLAYSHIFTON LCD_ENTRYMODE | 0x01 |
Display is shifted
#define LCD_ENTRYMODE 0x04 |
Set entrymode
#define LCD_ENTRYMODE 0x04 |
Set entrymode
#define LCD_HOME 0x02 |
Cursor move to first digit
#define LCD_INCREASE LCD_ENTRYMODE | 0x02 |
Set cursor move direction -- Increase
#define LCD_LEFT LCD_SHIFTMODE | 0x00 |
Left shift
#define LCD_RIGHT LCD_SHIFTMODE | 0x04 |
Right shift
#define LCD_SETCGRAMADDR 0x40 |
#define LCD_SHIFTMODE 0x10 |
Set shiftmode
#define lcdCommand | ( | value | ) | lcdWriteByte(value,0) |
#define lcdPutChar | ( | value | ) | lcdWriteByte(value,1) |
#define UI_MAIN |
void beep | ( | uint8_t | duration, |
uint8_t | count | ||
) |
void initializeLCD | ( | ) |
void lcdWriteByte | ( | uint8_t | c, |
uint8_t | rs | ||
) |
void lcdWriteNibble | ( | uint8_t | value | ) |
UI_STRING | ( | ui_text_on | , |
UI_TEXT_ON | |||
) |
UI_STRING | ( | ui_text_off | , |
UI_TEXT_OFF | |||
) |
UI_STRING | ( | ui_text_na | , |
UI_TEXT_NA | |||
) |
UI_STRING | ( | ui_yes | , |
UI_TEXT_YES | |||
) |
UI_STRING | ( | ui_no | , |
UI_TEXT_NO | |||
) |
UI_STRING | ( | ui_print_pos | , |
UI_TEXT_PRINT_POS | |||
) |
UI_STRING | ( | ui_selected | , |
UI_TEXT_SEL | |||
) |
UI_STRING | ( | ui_unselected | , |
UI_TEXT_NOSEL | |||
) |
UI_STRING | ( | ui_action | , |
UI_TEXT_STRING_ACTION | |||
) |
char displayCache[UI_ROWS][MAX_COLS+1] |
long ui_autoreturn_time = 0 |