Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Created: 19.06.2016 11:37:00
- * Author: Ulrich
- */
- #include <avr/io.h>
- #include <util/delay.h>
- #include "oled_ssd1306.h"
- int main(void)
- {
- DDRB |= (1<<PB5);
- oled_init();
- oled_gotoxy(0,0);
- while(1){
- for(uint32_t tmp = 1;tmp < 99999999; tmp++){
- oled_gotoxy(0,0);
- oled_write("****************");
- oled_gotoxy(0,1);
- oled_write("* Ulrich Radig *");
- oled_gotoxy(0,2);
- oled_write("****************");
- oled_font_size(1);
- oled_gotoxy(0,4);
- oled_write("%8i",tmp);
- oled_font_size(0);
- _delay_ms(100);
- PORTB ^= (1<<PB5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement