Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4157

MicroPython • Re: Rotary Encoder

$
0
0
Where have you put the libraries? "Used" isn't a standard path. Either the root directory or a created "/lib" directory (both on your Raspberry Pi Pico's filesystem) are the right place to put them.

Please try using example_simple.py and change only the lines:

Code:

r = RotaryIRQ(pin_num_clk=13,              pin_num_dt=14,
to

Code:

r = RotaryIRQ(    pin_num_clk=0,    pin_num_dt=1,
Does that work?

Statistics: Posted by scruss — Thu Mar 21, 2024 7:17 pm



Viewing all articles
Browse latest Browse all 4157

Trending Articles