Skip to content

Commit 01db333

Browse files
committed
Initial projects added
This commit contains two project files and a library file. First project is basically blinks a LED and send strings to computer by using serial communication via COM port. And the other one is the second part of first project. Only sending strings to the compter.
1 parent bc13826 commit 01db333

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
Blink
3+
Turns on an LED on for one second, then off for one second, repeatedly.
4+
5+
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
6+
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
7+
the correct LED pin independent of which board is used.
8+
If you want to know what pin the on-board LED is connected to on your Arduino model, check
9+
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
10+
11+
This example code is in the public domain.
12+
13+
modified 8 May 2014
14+
by Scott Fitzgerald
15+
16+
modified 2 Sep 2016
17+
by Arturo Guadalupi
18+
19+
modified 8 Sep 2016
20+
by Colby Newman
21+
*/
22+
23+
24+
// the setup function runs once when you press reset or power the board
25+
void setup() {
26+
// initialize digital pin LED_BUILTIN as an output.
27+
pinMode(LED_BUILTIN, OUTPUT);
28+
//set serial communication speed
29+
Serial.begin(9600);
30+
}
31+
32+
// the loop function runs over and over again forever
33+
void loop() {
34+
Serial.println("on");
35+
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
36+
delay(2000);
37+
Serial.println("off");
38+
// wait for a second
39+
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
40+
delay(2000); // wait for a second
41+
}

libraries/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
K�t�phanelerin kurulumu ile ilgili daha fazla bilgi i�in �u adresi ziyaret edin: http://www.arduino.cc/en/Guide/Libraries
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
void setup() {
2+
// put your setup code here, to run once:
3+
Serial.begin(9600);
4+
}
5+
6+
void loop() {
7+
// put your main code here, to run repeatedly:
8+
Serial.println("Hello computer. I'm Arduino!");
9+
delay(1000);
10+
11+
}

0 commit comments

Comments
 (0)