Created
June 8, 2018 11:01
-
-
Save andysheen/27ce10a69fec7544bc49268d2f0fd09a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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