Problem with I2C level shifter 5V to 3.3V

I love you Jim-p!!!
You helped me to look into the right direction.

NEVER USED PULL-UP as the argument was not accepted in my code!!!
Wondering how it ever could work?!?!?

Thanks a lot to all of you !!!!!!!! You helped me to solve this riddle !!!! :slight_smile: I'm really happy now. Wish I could share this feeling!! Or spent you guys a few beers or something like this. You really helped me out!!

So, I assume all is working OK.

1 Like

No idea why the argument was not accepted or hasn't worked:

# rotary options
RANGE_MODE = const(1) # 1->UNBOUNDED, 2->WRAP, 3->BOUNDED
PIN_CLK = const(7)
PIN_DT = const(8)
PULL_UP_ENCODER = True
# button options
PIN_BUTTON = const(6)
PULL_UP_BUTTON = True

class GRotaryEncoder(RotaryIRQ):
  '''Class for rotary encoder with button. Needs sleep time in the loop where it is used for debouncing. 50ms are a good value'''
  
  def __init__(self, pin_num_clk=PIN_CLK, pin_num_dt=PIN_DT, min_val=0, max_val=10, incr=1,range_mode=RANGE_MODE, pull_up=PULL_UP_ENCODER, pin_button=PIN_BUTTON,pull_up_button=PULL_UP_BUTTON):
    super().__init__(pin_num_clk, pin_num_dt, min_val, max_val, incr, range_mode, pull_up)

Beside my confusion of the non working argument yes. I need to add: I'm a C embedded developer. I use Python from time to time and started to play around with MicroPython a bit.

I don't think Espressif (makers of ESP32) or Arduino support the use of micropython, so you are on your own

1 Like

Yes I think I can go for myself now. Software is not the problem. Here I know how to go on. Thanks a lot!!

Have fun!

Thanks Jim!