We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d460614 commit 39c89b9Copy full SHA for 39c89b9
src/Braccio++.cpp
@@ -63,11 +63,14 @@ BraccioClass::BraccioClass()
63
64
bool BraccioClass::begin(voidFuncPtr custom_menu)
65
{
66
+ static int constexpr RS485_RX_PIN = 1;
67
+
68
SPI.begin();
69
Wire.begin();
70
Serial.begin(115200);
71
72
pinMode(PIN_FUSB302_INT, INPUT_PULLUP);
73
+ pinMode(RS485_RX_PIN, INPUT_PULLUP);
74
75
static rtos::Thread th(osPriorityHigh);
76
th.start(mbed::callback(this, &BraccioClass::pd_thread));
@@ -83,7 +86,6 @@ bool BraccioClass::begin(voidFuncPtr custom_menu)
83
86
*/
84
87
85
88
button_init();
- pinMode(1, INPUT_PULLUP);
89
90
if (!expander_init()) return false;
91
0 commit comments