Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andysheen/27ce10a69fec7544bc49268d2f0fd09a to your computer and use it in GitHub Desktop.
Save andysheen/27ce10a69fec7544bc49268d2f0fd09a to your computer and use it in GitHub Desktop.
<SoftwareSerial.h>
SoftwareSerial rs485(2, 3);
#define RS485_TX 2
#define RS485_RX 3
#define RS485_EN 6
#define VOLTAGE_READ A5
#define LED_RS485 A3
#define LED_DIPSWITCH A2
#define LED_MOSFET A1
#define LED_ADC A0
void setup() {
pinMode(RS485_EN, OUTPUT);
rs485.begin(9600);
Serial.begin(9600);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment