Joel Pallent / Mbed 2 deprecated Muscle_Controlled_Servo

Dependencies:   mbed

Fork of Muscle_Controlled_Servo by Ben Gordon

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