Created
December 5, 2014 18:52
-
-
Save neutronstriker/2f581d71cd5797b29d26 to your computer and use it in GitHub Desktop.
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
#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