Robojax

Lesson 08: Arduino Conditional Statements

Lesson 08: Arduino Conditional Statements

Please select other codes for this lecture from the links below.

This is lecture 00 of Arduino Step by Step course


 /*

 * this code prints actual character entered
 * on the serial monitor
 * S01-05-3
  * Serial Monitor -3 
   * Video instruction for this code: https://youtu.be/WyWRGoACWFs
* This code is part of Ardunio Course 
with over 100 lectures Free On  YouTube Watch it here http://robojax.com/L/?id=338
Get the code for the course: http://robojax.com/L/?id=339


 * Written by Ahmad Shamshiri for Robojax
 * http://robojax.com or http://youTube.com/robojaxTV
 * on Feb 17, 2019 at 13:54 in Ajax, Ontario, Canada
 */
void setup() {
        Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps
}

void loop() {

        // send data only when you receive data:
        if (Serial.available() > 0) {
                Serial.println( (char) Serial.read()   );
        }
}