Skip to content

Commit

Permalink
Merge branch 'cube-station'
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Cabé authored and Benjamin Cabé committed Oct 28, 2011
2 parents 6cc5d80 + 7c5c471 commit 223adbd
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 111 deletions.
16 changes: 9 additions & 7 deletions arduino/cube_station/LCD_Util.pde
@@ -1,16 +1,18 @@
extern NewSoftSerial lcdSerial ;

void LCD_MoveCursor(int pos) {
Serial3.print(0xFE, BYTE) ;
Serial3.print(0x80, BYTE) ;
Serial3.print(pos, BYTE) ;
lcdSerial.print(0xFE, BYTE) ;
lcdSerial.print(0x80, BYTE) ;
lcdSerial.print(pos, BYTE) ;
}

void LCD_ClearScreen() {
Serial3.print(0xFE, BYTE) ;
Serial3.print(0x01, BYTE) ;
lcdSerial.print(0xFE, BYTE) ;
lcdSerial.print(0x01, BYTE) ;
}

void LCD_SetBacklight(byte level) {
Serial3.print(0x80, BYTE) ;
Serial3.print(level, BYTE) ;
lcdSerial.print(0x80, BYTE) ;
lcdSerial.print(level, BYTE) ;
}

0 comments on commit 223adbd

Please sign in to comment.