Cleanup as ANSI escapes are complete

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2015-10-22 00:44:47 -04:00
parent da600b62dd
commit 2f545041c9
2 changed files with 1 additions and 17 deletions

View File

@ -316,7 +316,6 @@ void writeStringToLCD(char* str) {
break;
;;
case 'B': // CUD - Cursor down
PORTC ^= (1 << PC5);
num0 = fnd0 ? num0 : 1;
moveCursorDown(num0);
break;

View File

@ -50,27 +50,14 @@ void flashLED(uint8_t times) {
times--;
}
}
//--------------------------------------------------
/*
Initialize previous, current, and next screen variables to spaces
*/
char* initScreenMem(const uint8_t len) {
char *scrn = (char*) malloc(len * sizeof(char));
for (uint8_t i = 0; i < len; i++) {
scrn[i] = ' ';
}
return scrn;
}
//--------------------------------------------------
int main(void) {
clock_prescale_set(clock_div_1);
STATUS_LED_DDR |= 1 << STATUS_LED; // DEBUG
// Allocate and init first block of heap for storing LCD data
char* scrn = initScreenMem(LCD_CHARACTERS_PER_SCREEN);
initUSART();
char serialChar;
@ -78,8 +65,6 @@ int main(void) {
//initLCDByInternalReset();
flashLED(5); // DEBUG
writeStringToLCD(CUB(1));
while (1) {
serialChar = receiveByte();