We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9420bbb commit fba901fCopy full SHA for fba901f
MPLab-3-AryaVaraste.c
@@ -0,0 +1,44 @@
1
+#include <avr\io.h>
2
+#include <avr\interrupt.h>
3
+#include <util\delay.h>
4
+
5
6
+int main(){
7
8
+ DDRA |= (1<<PA0);
9
+ DDRA |= (1<<PA1);
10
+ DDRA |= (1<<PA2);
11
12
+ while(1){
13
+ _delay_ms(750);
14
+ PORTA = 0b00000001;
15
16
+ PORTA = 0b00000010;
17
18
+ PORTA = 0b00000100;
19
20
+ }
21
+ return 0;
22
+}
23
24
25
26
27
+#include<avr\io.h>
28
+#include<avr\interrupt.h>
29
+#include<util\delay.h>
30
31
32
33
34
+ DDRA |= (1 << PAO);
35
36
37
+ PORTA |= 1;
38
39
+ PORTA &= ~(1);
40
41
42
43
44
0 commit comments