Guest User

Untitled

a guest
Nov 7th, 2019
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2. #define rxPin 3
  3. #define txPin 7
  4.  
  5. // set up a new serial port
  6. SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);
  7.  
  8. void setup()  {
  9.   // define pin modes for tx, rx:
  10.   pinMode(rxPin, INPUT);
  11.   pinMode(txPin, OUTPUT);
  12.  
  13.   // set the data rate for the SoftwareSerial port
  14.   mySerial.begin(9600);
  15.  
  16.   // Send this mesage to Serial Monitor  
  17.   mySerial.println("Hallo mas Taufiq, piye kabare?");
  18. }
  19.  
  20. void loop()
  21. {
  22.  //Placed your code here!
  23. }
Advertisement
Add Comment
Please, Sign In to add comment