Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Tx//COM3
- #include <SoftwareSerial.h>
- SoftwareSerial s(3,2);
- char mystr[6] = "Hello"; //String data
- char mystr2[10] = "MyFliends"; //String data 2
- void setup() {
- // Begin the Serial at 9600 Baud
- Serial.begin(9600);
- s.begin(9600);
- }
- void loop() {
- s.write(mystr,6); //Write the serial data
- s.write('\0'); //'\n'
- //Serial.write("",1); //space
- s.write(mystr2,10); //'\n'
- s.write('\0');
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement