whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 221 forks source link

pio.port.getval pin numbers always sorted? #320

Open Mynogs opened 4 years ago

Mynogs commented 4 years ago

pio.port.getval(39, 38, 37) give as result the values of port 37, 38 and 39.

So pio.port.getval(39, 38, 37) is eqivalent to pio.port.getval(37, 38, 39).

Please document these behaviors, this can be quite surprising!

the0ne commented 4 years ago

Hmm, sounds to me as if this wasn't some dangerous feature but rather a bug bug-feature 1