/*void setup() {
Serial.begin(9600);
Serial.println("VVEDI CHISLO: ");
}
void loop() {
if (Serial.available() > 0) {
// int data = Serial.read();
//char data = Serial.read();
int data = Serial.parseInt();
Serial.println(data);
9;
}
}*/
/*int ledPin = 13;
byte incomingByte;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
if(incomingByte == '1'){
digitalWrite(ledPin, HIGH);
}
else if (incomingByte == '0'){
digitalWrite(ledPin, LOW);
}
Serial.print("I received: ");
Serial.println(incomingByte, DEC);
}
delay(10);
}*/
#define ARRAY_SIZE 12
//global variable definition
char hello[ARRAY_SIZE] = {
'h','e','l','l','o',' ','k','i','t','t','y','!'};
void setup() {
Serial.begin(9600);
}
void loop() {
//print characters from array to serial monitor
for(int x = 0; x < ARRAY_SIZE; x++) {
Serial.print(hello[x]);
delay(250);
}
Serial.println();
delay(250);
}