File tree 1 file changed +69
-0
lines changed
1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ int Kirmizi_Pin = 9 ;
2
+
3
+ int Yesil_Pin = 10 ;
4
+
5
+ int Mavi_Pin = 11 ;
6
+
7
+ void setup ()
8
+
9
+ {
10
+
11
+ pinMode (Kirmizi_Pin, OUTPUT);
12
+
13
+ pinMode (Yesil_Pin, OUTPUT);
14
+
15
+ pinMode (Mavi_Pin, OUTPUT);
16
+
17
+ }
18
+
19
+ void loop ()
20
+
21
+ {
22
+
23
+ Renk_Ayarla (255 , 0 , 0 );
24
+
25
+ delay (1000 );
26
+
27
+ Renk_Ayarla (0 , 255 , 0 );
28
+
29
+ delay (1000 );
30
+
31
+ Renk_Ayarla (0 , 0 , 255 );
32
+
33
+ delay (1000 );
34
+
35
+ Renk_Ayarla (255 , 255 , 0 );
36
+
37
+ delay (1000 );
38
+
39
+ Renk_Ayarla (80 , 0 , 80 );
40
+
41
+ delay (1000 );
42
+
43
+ Renk_Ayarla (0 , 255 , 255 );
44
+
45
+ delay (1000 );
46
+
47
+ Renk_Ayarla (255 , 255 , 255 );
48
+
49
+ delay (1000 );
50
+
51
+ }
52
+
53
+ void Renk_Ayarla (int Kirmizi_Renk, int Yesil_Renk, int Mavi_Renk)
54
+
55
+ {
56
+
57
+ Kirmizi_Renk = 255 - Kirmizi_Renk;
58
+
59
+ Yesil_Renk = 255 - Yesil_Renk;
60
+
61
+ Mavi_Renk = 255 - Mavi_Renk;
62
+
63
+ analogWrite (Kirmizi_Pin, Kirmizi_Renk);
64
+
65
+ analogWrite (Yesil_Pin, Yesil_Renk);
66
+
67
+ analogWrite (Mavi_Pin, Mavi_Renk);
68
+
69
+ }
You can’t perform that action at this time.
0 commit comments