Last active
January 7, 2019 10:34
-
-
Save 7m4mon/40237cbeccf3fccc659d998bc2d25927 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
/////////////////////////////////////////// | |
// LCD test program for ccs-c | |
// lcd.c was defined to lcd_b.c | |
// | |
// As Defined in the following structure the pin connection is as follows: | |
// B0 enable | |
// B1 rs | |
// B2 rw | |
// B4 B4 | |
// B5 B5 | |
// B6 B6 | |
// B7 B7 | |
// | |
// LCD pins B0-B3 are not used and PIC B3 is not used. | |
////////////////////////////////////////// | |
#include <16f648A.h> | |
#fuses INTRC_IO,NOWDT,PUT,NOPROTECT,NOMCLR | |
#use delay(clock=4000000) | |
#include <lcd_b.c> | |
unsigned int i,j; | |
void main() { | |
delay_ms(100); | |
lcd_init(); | |
while(TRUE){ | |
for(i=127;i<254;i++){ | |
for(j=100;j<254;j++){ | |
printf(lcd_putc,"\fCurrent i:%3u %X\n#イマノ(j)ハ%3dデス.#"i,i,j); | |
delay_ms(100); | |
output_toggle(PIN_B3); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment