Skip to content

Instantly share code, notes, and snippets.

@Trionium
Last active January 23, 2020 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trionium/4eb3bbe05c2289db710ce58c53e9d813 to your computer and use it in GitHub Desktop.
Save Trionium/4eb3bbe05c2289db710ce58c53e9d813 to your computer and use it in GitHub Desktop.
Writing strings to LCD with PIC microcontroller.
/*
* 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