Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <util/delay.h>
- #include "lcd.h"
- #include "ac.h"
- #include <stdlib.h>
- #
- int main() {
- DDRD = 0xFF;
- DDRC = 0xFF;
- LCD_init();
- AC_init();
- while (1) {
- char s[4];
- dtostrf(AC_read(),4,2,s);
- LCD_text(s);
- LCD_char('V');
- _delay_ms(100);
- LCD_clear();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement