NuMaker Modbus-RS485

Dependencies:   Modbus nvt_rs485

Fork of modbus-over-rs485-sample by Wayne Lin

Revision:
9:32ff3d56f070
Parent:
4:f69e05cb6714
Child:
12:4d2e0c6164b9
--- a/main.cpp	Tue Jul 11 11:29:03 2017 +0800
+++ b/main.cpp	Fri Oct 06 16:18:45 2017 +0800
@@ -39,6 +39,8 @@
 DigitalIn DipSwitch[DEF_PIN_NUM] = { PG_1, PG_2, PF_9, PF_10, PC_10, PC_11 } ;
 #elif defined(TARGET_NUMAKER_PFM_M453)
 DigitalIn DipSwitch[DEF_PIN_NUM] = { PD_6, PD_1, PC_6, PC_7, PC_11, PC_12 };
+#elif defined(TARGET_NUMAKER_PFM_M487)
+DigitalIn DipSwitch[DEF_PIN_NUM] = { PH_9, PH_8, PB_9, PF_11, PG_4, PC_11 } ;
 #endif
 
 unsigned short GetValueOnDipSwitch()