Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * zadanie5e.c
- *
- * Created: 28.1.2016 11:36:17
- * Author: d14valicek
- */
- #define F_CPU 1000000UL
- #include <avr/io.h>
- #include <stdio.h>
- #include <util/delay.h>
- int main(void)
- {
- DDRD = 0xFF;
- DDRC = 0x00;
- int pole[16] = {0b00000011, 0b11110011, 0b00100101, 0b00001101, 0b10011001, 0b01001001, 0b11000001, 0b00011111, 0b00000001, 0b00011001, 0b00010001, 0b00000001, 0b01100011, 0b00000011, 0b01100001, 0b01110001};
- while(1)
- {
- int i = PINC;
- PORTD = pole[i];
- }
- }
Add Comment
Please, Sign In to add comment