Skip to content

Commit

Permalink
test hc-sro4
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Jan 4, 2025
1 parent d9f7df6 commit 72ce623
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RCMv3/rcmv3.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ class RCMv3ParameterHelper {
};
case RC_TYPE_Hcsr04:
return {
{ "dataPin", RC_DATA_Pin },
{ "clockPin", RC_DATA_Pin },
{ "trigPin", RC_DATA_Pin },
{ "echoPin", RC_DATA_Pin },
{ "hx711 distance scale", RC_DATA_Float }
};
case RC_TYPE_DigitalWrite:
Expand Down Expand Up @@ -1206,10 +1206,10 @@ class RCMv3ComponentHcsr04 : public RCMv3Component {
boolean successfullyCreatedISRVal;

public:
RCMv3ComponentHcsr04(byte _echoPin, byte _trigPin, float _hx711DistanceScale)
RCMv3ComponentHcsr04(byte _trigPin, byte _echoPin, float _hx711DistanceScale)
: RCMv3Component(RC_TYPE_Hcsr04)
, echoPin(_echoPin)
, trigPin(_trigPin)
, echoPin(_echoPin)
{
hx711DistanceScale = _hx711DistanceScale;

Expand Down

0 comments on commit 72ce623

Please sign in to comment.