RMT class bug

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
mikronauts
Posts: 13
Joined: Thu Nov 03, 2016 10:12 pm

RMT class bug

Post by mikronauts » Sun Mar 22, 2020 11:14 pm

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?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RMT class bug

Post by pythoncoder » Mon Mar 23, 2020 8:35 am

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.
Peter Hinch
Index to my micropython libraries.

mikronauts
Posts: 13
Joined: Thu Nov 03, 2016 10:12 pm

Re: RMT class bug

Post by mikronauts » Mon Mar 23, 2020 6:10 pm

Thank you for checking... and submitting the issue!

Post Reply