This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
AtTiny_alarm_clock/lcdtest.c
2018-07-16 17:11:33 +02:00

34 lines
454 B
C

#include <inttypes.h>
#include <avr/io.h>
#define lcd_bus8
#include "lcd4.h"
int main(void){
lcd_1s();
lcd_init();
lcd_1s();
lcd_1s();
lcd_write(therepos,0x41,0x08);
lcd_1s();
lcd_1s();
lcd_write(here,0x42,0);
lcd_1s();
lcd_1s();
lcd_write(here,0x43,0);
lcd_1s();
lcd_1s();
lcd_write(here,0x44,0);
lcd_1s();
lcd_1s();
DDRB = 0x0f;
while(1==1){
PORTB = 0x0f;
lcd_1s();
PORTB = 0x05;
lcd_1s();
PORTB = 0x0A;
lcd_1s();
}
}