YALI
Yet Another LCD Interface
|
MPLAB XC C (PIC) configuration file for YALI module. More...
#include "unilcd-config.h"
#include <xc.h>
Go to the source code of this file.
Macros | |
#define | XC8_PIC_MID 1 |
#define | SHIFTREG_PORT PORTB |
#define | SHIFTREG_TRIS TRISB |
#define | SHIFTREG_CLK_PIN 0 |
#define | SHIFTREG_DATA_PIN 1 |
#define | SHIFTREG_LATCH_PIN 2 |
#define | UCHAR unsigned char |
#define | CHAR char |
#define | VOID void |
#define | NULL 0 |
#define | MAX_STR_LEN 16 |
#define | DELAY_LONG() __delay_ms(5) |
#define | DELAY_SHORT() __delay_us(30) |
MPLAB XC C (PIC) configuration file for YALI module.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define CHAR char |
Mapping for char.
#define DELAY_LONG | ( | ) | __delay_ms(5) |
Function mapping for long delay.
#define DELAY_SHORT | ( | ) | __delay_us(30) |
Function mapping for short delay.
#define MAX_STR_LEN 16 |
Maximum string length allowed by the YALI library.
#define NULL 0 |
Definition for NULL.
#define SHIFTREG_CLK_PIN 0 |
Clock output which connected to the CLK terminal of the YALI module.
#define SHIFTREG_DATA_PIN 1 |
Data output which connected to the DAT terminal of the YALL module.
#define SHIFTREG_LATCH_PIN 2 |
Latch control pin which is connected to the LAT terminal of the YALI module.
#define SHIFTREG_PORT PORTB |
Port used to drive the YALI module.
#define SHIFTREG_TRIS TRISB |
TRIS register used to drive the YALI module.
#define UCHAR unsigned char |
Mapping for Unsigned char.
#define VOID void |
Mapping for void.
#define XC8_PIC_MID 1 |
Flag to indicate the Microchip MPLAB XC8 C project.