Page 1 of 1

RMT class bug

Posted: Sun Mar 22, 2020 11:14 pm
by mikronauts
Hi,

Today I was playing with the RMT class, and noticed what appears to be a mult-legged insectoid:

Code: Select all

import esp32
from machine import Pin

r = esp32.RMT(0, pin=Pin(27), clock_div=80)
r.loop(1)
r.write_pulses((100, 5,   10, 20,   10, 30,   10, 40,   10, 50, 1,1), start=0) 
Note the initial long low pulse, and a short marker pulse at the end.

I was watching the pin with a logic analyzer, and the first two entries (100us low, 5 us high) get repeated once per loop.

Any ideas for a fix?

Re: RMT class bug

Posted: Mon Mar 23, 2020 8:35 am
by pythoncoder
You do seem to have found one ;) I produced a more minimal test case which demonstrates the fault and raised this issue so hopefully a fix will land soon.

FWIW I've been using RMT quite heavily lately without problems, but only in single shot mode.

Re: RMT class bug

Posted: Mon Mar 23, 2020 6:10 pm
by mikronauts
Thank you for checking... and submitting the issue!