Merge branch 'nano-revision-2.1' into nano-revision-2.2

This commit is contained in:
2023-12-19 00:30:45 +01:00
2 changed files with 44 additions and 30 deletions

View File

@@ -10,7 +10,7 @@
#include <SoftRS485.h>
#define Max485_RO 2 // read-output of Max485
#define Max485_RE 3 // not-read-enable of Max485
#define Max485_RE 8 // not-read-enable of Max485
#define Max485_DE 8 // data enable of Max485
#define Max485_DI 9 // data input of Max485
@@ -21,7 +21,7 @@
#define LCD_D6 6
#define LCD_D7 7
#define PROGRAM "RS485-Nano 2.1 / LCDReceive 1.2"
#define PROGRAM "RS485-Nano 2.2 / LCDReceive 1.2"
// initialize the library by associating any needed LCD interface pin with the arduino pin number it is connected to
@@ -31,7 +31,7 @@ LiquidCrystal lcd(LCD_RS, LCD_EN, LCD_D4, LCD_D5, LCD_D6, LCD_D7);
void setup() {
Serial.begin(115200);
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI); // library initialization:
invert485polarity(true);
//invert485polarity(true);
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.