Skip to content

Blocks for the HC-SR04 sonic sensor#8

Open
RMeurisse wants to merge 2 commits intobmcage:blockly4arduinofrom
RMeurisse:Block_SonicSensor
Open

Blocks for the HC-SR04 sonic sensor#8
RMeurisse wants to merge 2 commits intobmcage:blockly4arduinofrom
RMeurisse:Block_SonicSensor

Conversation

@RMeurisse
Copy link
Copy Markdown

Added 2 new blocks to get the distance measered by the supersonic sensor.

Blocks:

  • config block (set the echo and trigger pin, give in the maximum waiting time)
  • read block (calculates and returns the distance in cm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant