/* History: 20230504 - V0.2 20230504 - V0.1 init. */ #include #include //#include void SC_MC9_setup(){ Serial1.begin(9600); pinMode(RS485_OE_1, OUTPUT); delay(10); digitalWrite(RS485_OE_1, HIGH); } void SC_MC9_read(int arr[], int size){ cli();//stop interrupts Serial1.print("485 Read!!"); //Serial Write ADC_Value to RS-485 Bus sei();//allow interrupts } void SC_MC9_write(int arr[], int size){ cli();//stop interrupts Serial1.print("485 Write^^"); //Serial Write ADC_Value to RS-485 Bus sei();//allow interrupts }