Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- #define rxPin 3
- #define txPin 7
- // set up a new serial port
- SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
- void setup() {
- // define pin modes for tx, rx:
- pinMode(rxPin, INPUT);
- pinMode(txPin, OUTPUT);
- // set the data rate for the SoftwareSerial port
- mySerial.begin(9600);
- // Send this mesage to Serial Monitor
- mySerial.println("Hallo mas Taufiq, piye kabare?");
- }
- void loop()
- {
- //Placed your code here!
- }
Advertisement
Add Comment
Please, Sign In to add comment