Solar panel
Loading...
Searching...
No Matches
lcd.h File Reference
#include <xc.h>

Go to the source code of this file.

Macros

#define LCD_RS   LATDbits.LATD3
 
#define DIR_LCD_RS   TRISDbits.TRISD3
 
#define LCD_CS   LATDbits.LATD2
 
#define DIR_LCD_CS   TRISDbits.TRISD2
 
#define LCD_DATA_L_DIR   TRISJ
 
#define LCD_DATA_L   LATJ
 

Functions

int8_t Lcd_Init (void)
 
void LCD_2x16_WriteCmd (uint8_t command)
 
void LCD_2x16_WriteData (uint8_t command)
 
void LCD_2x16_WriteMsg (unsigned char *msg, uint8_t line)
 

Macro Definition Documentation

◆ DIR_LCD_CS

#define DIR_LCD_CS   TRISDbits.TRISD2

Definition at line 41 of file lcd.h.

◆ DIR_LCD_RS

#define DIR_LCD_RS   TRISDbits.TRISD3

Definition at line 39 of file lcd.h.

◆ LCD_CS

#define LCD_CS   LATDbits.LATD2

Definition at line 40 of file lcd.h.

◆ LCD_DATA_L

#define LCD_DATA_L   LATJ

Definition at line 43 of file lcd.h.

◆ LCD_DATA_L_DIR

#define LCD_DATA_L_DIR   TRISJ

Definition at line 42 of file lcd.h.

◆ LCD_RS

#define LCD_RS   LATDbits.LATD3

Definition at line 38 of file lcd.h.

Function Documentation

◆ LCD_2x16_WriteCmd()

void LCD_2x16_WriteCmd ( uint8_t  command)

Definition at line 43 of file lcd.c.

◆ LCD_2x16_WriteData()

void LCD_2x16_WriteData ( uint8_t  command)

Definition at line 58 of file lcd.c.

◆ LCD_2x16_WriteMsg()

void LCD_2x16_WriteMsg ( unsigned char *  msg,
uint8_t  line 
)

Definition at line 74 of file lcd.c.

◆ Lcd_Init()

int8_t Lcd_Init ( void  )

Definition at line 17 of file lcd.c.