Skip to content

Add pulse command#13

Merged
1 commit merged into
letscontrolit:masterfrom
fgmx85:master
Dec 13, 2015
Merged

Add pulse command#13
1 commit merged into
letscontrolit:masterfrom
fgmx85:master

Conversation

@fgmx85
Copy link
Copy Markdown
Contributor

@fgmx85 fgmx85 commented Dec 11, 2015

Short pulses

To send a pulse to a certain pin:

http:///control?cmd=mcpgpioPulse,,,

Example to send an active high pulse on MCPIO 2 for 500 mSeconds:

http:///control?cmd=mcpgpioPulse,2,1,500

Short pulses

To send a pulse to a certain pin:

http://<ESP IP
address>/control?cmd=mcpgpioPulse,<pin>,<state>,<duration>

Example to send an active high pulse on MCPIO 2 for 500 mSeconds:

http://<ESP IP address>/control?cmd=mcpgpioPulse,2,1,500
ghost pushed a commit that referenced this pull request Dec 13, 2015
@ghost ghost merged commit 7bd2e13 into letscontrolit:master Dec 13, 2015
TD-er pushed a commit that referenced this pull request May 11, 2018
Brommander added a commit to Brommander/ESPEasy that referenced this pull request May 13, 2026
letscontrolit#1  Translate all comments to English
letscontrolit#2  Use const reference and member initializer list in constructors
letscontrolit#3  Explicit {} initialization for global arrays (clarity)
letscontrolit#4  Explicit {} initialization for global int variables (clarity)
letscontrolit#5  Use auto& dev and DEVICE_TYPE_SERIAL in PLUGIN_DEVICE_ADD
letscontrolit#6  Use const variables for serial port/pins from CONFIG
letscontrolit#7  Add bounds checks before array index access
letscontrolit#8  Replace millis() arithmetic with timePassedSince()
letscontrolit#9  Add bounds check at top of D0 read loop
letscontrolit#11 Replace C-style casts with static_cast<>
letscontrolit#12 Pre-calculate scale factor (powf) in state 32, not per value
letscontrolit#13 Declare loop variable outside scope for use in debug log
letscontrolit#14 Remove hardcoded serial pins — port now configured via UI
This pull request was closed.
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