Skip to content

HardwareSerial.h for esp8288 #7962

@TiagoRSReis

Description

@TiagoRSReis

hello, i'am tring to use this library for add one more serial port on my esp8266, but i think i am falling the syntax.

Can you help me? i want to chage the software serial for yours hardware serial.
'''
#include <SoftwareSerial.h>

SoftwareSerial mySerial(4, 0); //RX e TX D2,D3

#define Reception_enable 16 //Should be 0V D0
#define Delivery_enable 5 //Should be 5V D1

void setup()
{
mySerial.begin(9600);
pinMode(Reception_enable,OUTPUT);
pinMode(Delivery_enable,OUTPUT);

digitalWrite(Reception_enable,LOW);
digitalWrite(Delivery_enable,HIGH);

Serial.begin(9600);

}

void loop()
{
mySerial.write(35); // send a byte with the value 45

if(mySerial.available()){
Serial.print("Received: ");
Serial.println(mySerial.read());
}
} '''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions