Last active
January 23, 2020 15:09
-
-
Save Trionium/4eb3bbe05c2289db710ce58c53e9d813 to your computer and use it in GitHub Desktop.
Writing strings to LCD with PIC microcontroller.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: main.c | |
* Author: Trion Projects | |
* | |
* Created on January 19, 2020, 4:22 PM | |
*/ | |
#include "config.h" | |
void main(void) { | |
// Turn comparator off and enable pins for I/O functions | |
CMCON = 0x07; | |
LCDInitialize(); | |
// Option 1 | |
uint8_t str[] = "Trion Projects"; | |
LCDPrintString(str, 1, 1); | |
// Option 2 | |
LCDPrintString("LCD Interfacing", 2, 1); | |
while(1) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment