Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
LCD.c File Reference
#include <p24FJ128GB106.h>
#include "i2c.h"
#include "init.h"
#include "definitions.h"
#include "LCD.h"

Go to the source code of this file.

Functions

char * itoa1 (int i, unsigned char *a, int r)
 
void ClearDisplay (void)
 
void setCursor (unsigned char position)
 
void goto_xy (int x, int y)
 
void BlinkOn (void)
 
void BlinkOff (void)
 
void LCDwrite (char text)
 
void DisplayString (unsigned char x, unsigned char y, unsigned char *m, unsigned char clear)
 
void LCDIntro (void)
 
void LCD_SendCommand (unsigned char command)
 
void load_custom_character (unsigned char *rows, unsigned char char_num)
 

Variables

const unsigned char vina1 []
 
const unsigned char vina2 []
 
const unsigned char vina3 []
 
const unsigned char di []
 
const unsigned char gi []
 
const unsigned char t []
 
const unsigned char al []
 

Function Documentation

void BlinkOff ( void  )

Function: BlinkOff

Preconditions: Cursor is on valid coordenate.

Overview: Turns cursor blinking ON.

Arguments: None.

Returns: None.

Definition at line 246 of file LCD.c.

void BlinkOn ( void  )

Function: BlinkOn

Preconditions: Cursor is on valid coordenate.

Overview: Turns cursor blinking ON.

Arguments: None.

Returns: None.

Definition at line 226 of file LCD.c.

void ClearDisplay ( void  )

Function: ClearDisplay

Preconditions: LCD initialized

Overview: Clears the LCD and returns the cursor to (1,0).

Arguments: None.

Returns: None.

Definition at line 167 of file LCD.c.

void DisplayString ( unsigned char  x,
unsigned char  y,
unsigned char *  m,
unsigned char  clear 
)

Function: DisplayString

Preconditions: LCDinitialized.

Overview: Writes a string on the LCD.

Arguments: Position on X, Position on Y, the string that will be sent, Clear before writing.

Returns: None.

Definition at line 286 of file LCD.c.

void goto_xy ( int  x,
int  y 
)

Function: goto_xy

Preconditions: LCD initialized.

Overview: Sends the cursor to the given coordenates.

Arguments: Position on X, Position on Y.

Returns: None.

Definition at line 207 of file LCD.c.

char* itoa1 ( int  i,
unsigned char *  a,
int  r 
)

Function: LEDport

Preconditions: None.

Overview: Turns ON/OFF the specified LED output.

Arguments: Physical LED number, Logic State (0-1).

Returns: None.

Definition at line 145 of file LCD.c.

void LCD_SendCommand ( unsigned char  command)

Function: LCD_SendCommand

Preconditions: None.

Overview: Sends a command to the LCD.

Arguments: Command.

Returns: None.

Definition at line 372 of file LCD.c.

void LCDIntro ( void  )

Function: LCDIntro

Preconditions: LCD initialized.

Overview: Displays custom characters and a little animation.

Arguments: None.

Returns: None.

Definition at line 317 of file LCD.c.

void LCDwrite ( char  text)

Function: LCDWrite

Preconditions: LCD initialized.

Overview: Sends an ASCII string of data to the LCD.

Arguments: String that will be sent.

Returns: None.

Definition at line 266 of file LCD.c.

void load_custom_character ( unsigned char *  rows,
unsigned char  char_num 
)

Function: load_custom_character

Preconditions: LCD initialized.

Overview: Stores a custom character on an available CGRAM address.

Arguments: Pointer to the stored character,CGRAM address in which it will be stored.

Returns: None.

Definition at line 392 of file LCD.c.

void setCursor ( unsigned char  position)

Function: setCursor

Preconditions: LCD initialized.

Overview: Places cursor to the given coordenates.

Arguments: Physical LED number, Logic State (0-1).

Returns: None.

Definition at line 187 of file LCD.c.

Variable Documentation

const unsigned char al[]
Initial value:
= {
0x09,
0x15,
0x1D,
0x15,
0x15,
0x00,
0x00,
0x00,
}

Definition at line 103 of file LCD.c.

const unsigned char di[]
Initial value:
= {
0x19,
0x15,
0x15,
0x15,
0x19,
0x00,
0x00,
0x00,
}

Definition at line 70 of file LCD.c.

const unsigned char gi[]
Initial value:
= {
0x0D,
0x11,
0x15,
0x15,
0x19,
0x00,
0x00,
0x00,
}

Definition at line 81 of file LCD.c.

const unsigned char t[]
Initial value:
= {
0x1F,
0x04,
0x04,
0x04,
0x04,
0x00,
0x00,
0x00,
}

Definition at line 92 of file LCD.c.

const unsigned char vina1[]
Initial value:
= {
0x04,
0x0C,
0x1C,
0x14,
0x1C,
0x0C,
0x0E,
0x0F,
}

Definition at line 37 of file LCD.c.

const unsigned char vina2[]
Initial value:
= {
0x00,
0x00,
0x00,
0x08,
0x0C,
0x0C,
0x14,
0x18,
}

Definition at line 48 of file LCD.c.

const unsigned char vina3[]
Initial value:
= {
0x1F,
0x0F,
0x1E,
0x0F,
0x1C,
0x0E,
0x18,
0x18,
}

Definition at line 59 of file LCD.c.