Contiki 3.x
Functions | Variables
lcd.c File Reference

 This file provides Raven LCD support.
More...

#include "lcd.h"

Go to the source code of this file.

Functions

static int lcd_num_print (uint16_t numb, bool negative, lcd_padding_t padding)
 This will print a number to the LCD with the following parameters. More...
 
static void lcd_nmb_print_dig (uint8_t val, int dig)
 This will print a number according to the segment map of the LCD. More...
 
static int lcd_text_sl (void)
 This will scroll the test on the LCD. More...
 
static int lcd_text_put (const char *s, int pos)
 This will put test out to the LCD at a certain location padded with spaces. More...
 
static int lcd_char_put (unsigned char c, int pos)
 This will put a single char out to the LCD by looking up the proper segments. More...
 
int lcd_init (void)
 This function will initialize the proper settings for the LCD driver. More...
 
void lcd_deinit (void)
 This will disable the LCD operation.
 
uint8_t itobcd (uint8_t inNumber)
 This will convert the incoming decimal number to BCD. More...
 
int lcd_num_puthex (uint16_t numb, lcd_padding_t padding)
 This will put a HEX value on the LCD that represents the input parameter. More...
 
int lcd_num_putdec (int numb, lcd_padding_t padding)
 This will put a DEC value on the LCD that represents the input parameter. More...
 
int lcd_num_clr (void)
 This will clear numbers displayed on the LCD. More...
 
int lcd_puts (const char *s)
 This will put a string of characters out to the LCD. More...
 
int lcd_puta (size_t length, const uint8_t *s)
 This will put a string of characters of a certain length out to the LCD. More...
 
int lcd_puts_P (const char *s)
 This will put a string out to the LCD from Flash. More...
 
int lcd_putchar (unsigned char c)
 This will put a single character out to the LCD. More...
 
void lcd_symbol_set (lcd_symbol_t symbol)
 This will enable any of the symbols on the Raven LCD. More...
 
void lcd_symbol_clr (lcd_symbol_t symbol)
 This will clear any symbol on the Raven LCD. More...
 
void lcd_symbol_set_group (int start, int count)
 This will enable a group of symbols from the lcd_symbol_chart. More...
 
void lcd_symbol_clr_group (int start, int count)
 This will disable a group of symbols from the lcd_symbol_chart. More...
 
 ISR (LCD_vect)
 This is the LCD Start of Frame Interrupt Subroutine. More...
 
void led_on (void)
 Turns the Raven nose LED on.
 
void led_off (void)
 Turns the Raven nose LED off.
 
void lcd_single_print_dig (uint8_t numb, uint8_t pos)
 This will add the passed in number to any of the four locations of the four digit segment display on the LCD. More...
 

Variables

static unsigned char lcd_text [20]
 LCD text buffer.
 
static int lcd_text_rd_ptr = 0
 Textd buffer read pointer for text field in LCD display. More...
 
static int lcd_text_wr_ptr = 0
 Text pointer for writing new chars to text buffer.
 

Detailed Description

 This file provides Raven LCD support.
Author
Mike Vidales mavid.nosp@m.a404.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file lcd.c.