Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Muscle_Controlled_Servo by
LCD.h
- Committer:
- BenRJG
- Date:
- 2018-04-29
- Revision:
- 8:462ce856429b
- Parent:
- 5:11489c0bd020
File content as of revision 8:462ce856429b:
#ifndef _LCD_H_
#define _LCD_H_
//////Included Files//////
#include "SPI.h"
//////////////////////////
///////Definitions////////
#define TEXT 1<<8
#define COMMAND 0<<8
#define READ 1<<9
#define WRITE 0<<9
#define LINE1 0x80
#define LINE2 0xC0
#define LCD_CLR() cmdLCD(0x01)
//////////////////////////
////////Functions/////////
void LCD_INIT(void);
void writeToLCD(char* str, int line, int pos);
void putLCD(unsigned char put);
unsigned int findSpace(char* str);
void cmdLCD(unsigned char cmd);
//////////////////////////
#endif
