diff --git a/src/driver/drv_ir.cpp b/src/driver/drv_ir.cpp index ec01eb8cf..a16d93262 100644 --- a/src/driver/drv_ir.cpp +++ b/src/driver/drv_ir.cpp @@ -387,6 +387,10 @@ extern "C" void testmehere(){ unsigned char pin = 9;// PWM3/25 unsigned char txpin = 24;// PWM3/25 + // allow user to change them + pin = PIN_FindPinIndexForRole(IOR_IRRecv,pin); + txpin = PIN_FindPinIndexForRole(IOR_IRSend,txpin); + if (ourReceiver){ IRrecv *temp = ourReceiver; ourReceiver = NULL; diff --git a/src/httpserver/new_http.c b/src/httpserver/new_http.c index 1bc390e0f..b3404b6c6 100644 --- a/src/httpserver/new_http.c +++ b/src/httpserver/new_http.c @@ -323,8 +323,8 @@ const char* htmlPinRoleNames[] = { "BP1658CJ_DAT", "BP1658CJ_CLK", "PWM_n", - "error", - "error", + "IRRecv", + "IRSend", "error", "error", "error", diff --git a/src/new_pins.h b/src/new_pins.h index 5816bd6a4..262aceb9e 100644 --- a/src/new_pins.h +++ b/src/new_pins.h @@ -41,6 +41,9 @@ enum IORole { IOR_PWM_n, + IOR_IRRecv, + IOR_IRSend, + IOR_Total_Options, }; diff --git a/windowsTest_msvc2008.vcproj b/windowsTest_msvc2008.vcproj index 311c6cb72..fe1f599be 100644 --- a/windowsTest_msvc2008.vcproj +++ b/windowsTest_msvc2008.vcproj @@ -40,7 +40,7 @@ + + + +