Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set pulseLength to 184 #68

Open
moledzki opened this issue Nov 23, 2019 · 0 comments
Open

Can't set pulseLength to 184 #68

moledzki opened this issue Nov 23, 2019 · 0 comments

Comments

@moledzki
Copy link

Hi,

I'm not able to set pulse length to 184 (or similar) value:

if (wiringPiSetup () == -1) { return 1; }
RCSwitch mySwitch = RCSwitch();
mySwitch.enableTransmit(0);
mySwitch.setProtocol(1);
mySwitch.setPulseLength(184);
mySwitch.send(BUTTON_1_ON_BINARY);

This code should theoretically sent particular binary code using protocol 1 and pulse length 184, but after executing it code with pulse 415 and protocol 5 is send.
If I change pulse length to ~284 or more - everything works as expected.

System info:
Raspberry Pi Model B Rev 2
Raspbian GNU/Linux 10 (buster)" Kernel 4.19.75+

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

No branches or pull requests

1 participant