Contiki 2.6
|
This file provides Raven LCD support. More...
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines | |
Constant defines for making seg_map[] table | |
#define | NUM_LCD_SYMBOL_A 0x01 |
#define | NUM_LCD_SYMBOL_B 0x02 |
#define | NUM_LCD_SYMBOL_C 0x04 |
#define | NUM_LCD_SYMBOL_D 0x08 |
#define | NUM_LCD_SYMBOL_E 0x10 |
#define | NUM_LCD_SYMBOL_F 0x20 |
#define | NUM_LCD_SYMBOL_G 0x40 |
Constant defines for indexing seg_map[] table | |
#define | LCD_SEV_SEG_INDEX_0 (0) |
#define | LCD_SEV_SEG_INDEX_1 (1) |
#define | LCD_SEV_SEG_INDEX_2 (2) |
#define | LCD_SEV_SEG_INDEX_3 (3) |
#define | LCD_SEV_SEG_INDEX_4 (4) |
#define | LCD_SEV_SEG_INDEX_5 (5) |
#define | LCD_SEV_SEG_INDEX_6 (6) |
#define | LCD_SEV_SEG_INDEX_7 (7) |
#define | LCD_SEV_SEG_INDEX_8 (8) |
#define | LCD_SEV_SEG_INDEX_9 (9) |
#define | LCD_SEV_SEG_INDEX_A (10) |
#define | LCD_SEV_SEG_INDEX_B (11) |
#define | LCD_SEV_SEG_INDEX_C (12) |
#define | LCD_SEV_SEG_INDEX_D (13) |
#define | LCD_SEV_SEG_INDEX_E (14) |
#define | LCD_SEV_SEG_INDEX_F (15) |
#define | LCD_SEV_SEG_INDEX_SPACE (16) |
#define | LCD_SEV_SEG_INDEX_MINUS (17) |
Enumerations | |
enum | lcd_drive_t |
Bit LCDDC2:0 and LCMDT. | |
Functions | |
int | lcd_init (void) |
Initialization and configuration of the LCD controller. | |
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. | |
Numeric functions | |
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. | |
int | lcd_num_putdec (int numb, lcd_padding_t padding) |
This will put a DEC value on the LCD that represents the input parameter. | |
int | lcd_num_clr (void) |
This will clear numbers displayed on the LCD. | |
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. | |
Text functions | |
int | lcd_puts (const char *s) |
This will put a string of characters out to the LCD. | |
int | lcd_puts_P (const char *s) |
This will put a string out to the LCD from Flash. | |
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. | |
int | lcd_putchar (unsigned char c) |
This will put a single character out to the LCD. | |
Symbol functions | |
void | lcd_symbol_set (lcd_symbol_t symbol) |
This will enable any of the symbols on the Raven LCD. | |
void | lcd_symbol_set_group (int start, int count) |
This will enable a group of symbols from the lcd_symbol_chart. | |
void | lcd_symbol_clr (lcd_symbol_t symbol) |
This will clear any symbol on the Raven LCD. | |
void | lcd_symbol_clr_group (int start, int count) |
This will disable a group of symbols from the lcd_symbol_chart. | |
LED Functions | |
void | led_on (void) |
Turns the Raven nose LED on. | |
void | led_off (void) |
Turns the Raven nose LED off. |
This file provides Raven LCD support.
Definition in file lcd.h.