Created
February 3, 2013 17:17
-
-
Save snilard/4702663 to your computer and use it in GitHub Desktop.
Nefungující výstup na LED nebo mrtvá noha. Konkrétně PB5.
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
#define LED_PWM PB3 | |
#define DATA_OUT_0 PB0 | |
#define DATA_OUT_1 PB1 | |
#define DATA_IN_0 PB2 | |
#define LED_B_2 PB5 | |
#define LED_B_3 PB6 | |
#define LED_A_1 PA0 | |
#define LED_A_4 PA1 | |
#define LED_A_5 PA2 | |
DDRB = (1<<LED_PWM) | (1<<DATA_OUT_0) | (1<<DATA_OUT_1) | (1<<LED_B_2) | (1<<LED_B_3); | |
DDRA = (1<<LED_A_1) | (1<<LED_A_4) | (1<<LED_A_5); | |
PORTB |= (1<<DATA_OUT_0) | (1<<DATA_OUT_1) | (1<<LED_B_2) | (1<<LED_B_3); | |
PORTA |= (1<<LED_A_1) | (1<<LED_A_4) | (1<<LED_A_5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment