Print to LCD
Dependencies: DOGS102 mbed-rtos mbed
Fork of MTDOT_BOX_EVB_Blinky by
main.cpp
- Committer:
- maclobdell
- Date:
- 2016-04-04
- Revision:
- 14:95709e8d776a
- Parent:
- 13:142a8d831f29
File content as of revision 14:95709e8d776a:
#include "mbed.h"
#include "rtos.h"
#include "DOGS102.h"
#include "font_6x8.h"
Serial debug(USBTX, USBRX);
SPI lcd_spi(SPI1_MOSI, SPI1_MISO, SPI1_SCK);
DigitalOut lcd_spi_cs(SPI1_CS, 1);
DigitalOut lcd_cd(XBEE_ON_SLEEP, 1);
DOGS102* lcd;
int main() {
char buffer[32];
lcd = new DOGS102(lcd_spi, lcd_spi_cs, lcd_cd);
sprintf(buffer, " Hello World! ");
lcd->writeText(6, 1, font_6x8, buffer, strlen(buffer));
}
