wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
407 stars 46 forks source link

Fix `bitReverse` function in `pio.ts` #87

Closed martin2250 closed 3 years ago

martin2250 commented 3 years ago

pretty self-explanatory, this is another bug I found while playing around with the PIOs.

https://jsfiddle.net/bwn6j75r/

Cheers!

urish commented 3 years ago

Good catch!

You can blame me for copying this code from StackOverflow without testing it thoroughly. Never blindly trust stackoverflow!

urish commented 3 years ago

Fix is up! thanks

martin2250 commented 3 years ago

copying this code from StackOverflow

caught in the act 😉 thanks!