How to use serial.write() in Arduino.






-          First you have to declare it with board rate 9600

Serial.begin(9600);  

-          Then we check is serial port is available. If available then we write data to it.

if (Serial.available()>0)

{

      Serial.Write(byte data);

}

Comments

Post a Comment

Popular posts from this blog