Skip to content

Instantly share code, notes, and snippets.

@neutronstriker
Created December 5, 2014 18:52
Show Gist options
  • Save neutronstriker/2f581d71cd5797b29d26 to your computer and use it in GitHub Desktop.
Save neutronstriker/2f581d71cd5797b29d26 to your computer and use it in GitHub Desktop.
#define F_CPU 1000000UL
#include<avr/io.h>
#include<util/delay.h>
#define SIPO_PORT B
#define SPIN 3 //PB3
#define STB 4 //PB4
#define CLK 5 //PB5
#include<sipolcd.h>
int main()
{
lcd_init(); //this function automatically intialises the port DDR register which is defined above as SIPO_PORT
//and also initialises the LCD properly.
lcd_print("Hello"); //this function prints a string.
while(1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment