Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- Serial.begin(115200);
- Serial2.begin(9600, SERIAL_8N1, 22, 21);
- }
- void loop() {
- tampil_text("t0", "test text");
- tampil_text("t1", "mikroavr.com");
- delay(1000);
- }
- void tampil_text(String _add_txt, String _txt_display) {
- String buf_txt = _add_txt + ".txt=" + "\"" + _txt_display + "\"";
- Serial2.print(buf_txt);
- Serial2.write(0xff);
- Serial2.write(0xff);
- Serial2.write(0xff);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement