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

Esp32 double transmission #39

Closed
githubniwis opened this issue Apr 30, 2024 · 3 comments
Closed

Esp32 double transmission #39

githubniwis opened this issue Apr 30, 2024 · 3 comments

Comments

@githubniwis
Copy link

Wanting to control my tv via node-red/mqtt I installed your software on an esp32.

from machine import Pin
from ir_tx.philips import RC6_M0

pin = Pin(15, Pin.OUT, value = 1)
to_tv = RC6_M0(pin)
to_tv.transmit(0, 9) # 9 is BBC2

When I power up the esp32, everything works fine. However when I do a restart/stop backend via Thonny, the signal is transmitted twice, so I get 99 instead of 9.
Having spent several evenings tinkering, I have to give up.
Can you help me?

@peterhinch
Copy link
Owner

A number of issues in Discussions have been connected to Thonny. It's also difficult to support Thonny problems because it doesn't seem to be possible to produce a session listing. Please could you repeat your testing using the official mpremote tool. If the error occurs, please post a listing of the session and I'll try to figure out what's going on.

@githubniwis
Copy link
Author

Your answer made me realise that Thonny was the cause of the double transmission, so problem solved.
Everything works just fine.
Thank you for taking the time.

@peterhinch
Copy link
Owner

Thanks for reporting back. I keep encountering the words "Thonny" and "problem" in close proximity...

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

2 participants