Jacdac Rotary Button Module
This module has 2 functions. Firstly, it has a limitless rotary encoder, meaning the value range is infinite. It can also act as a button when pressed down.
MakeCode Programming Tutorial
Micro:bit displays the rotary value when the button is pressed.