Skip to content

Commit

Permalink
Update Rak3172_Canopus.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
NamNamIoT committed Jul 18, 2024
1 parent dd3597f commit c0f75b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Rak3172_Canopus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ void init_io()
delay(1000); // do not remove this delay, it use for detect baud upload code UART mode
}

void enable_Vrs485()
{
digitalWrite(V_SS5, HIGH); // On power module rs485
}

void enable_Vss3()
{
digitalWrite(V_SS3, LOW); // Enable 3.3V
Expand All @@ -32,6 +27,12 @@ void enable_Vss5()
digitalWrite(V_SS5, HIGH); // Enable 5V
}

void enable_Vrs485()
{
//enable_Vss5(); // v3.1 On power module rs485
enable_Vss3(); // V3.2 and upper On power module rs485
}

void disable_Vrs485()
{
digitalWrite(V_SS5, LOW); // OFF power module rs485
Expand Down

0 comments on commit c0f75b3

Please sign in to comment.