Rotary Encoder, Button, and LCD User interface with Menu

The code here wasn't written for that board. I don't have one of those M0. So you're going to have to use this as an example to write code for that board. Or find some other code that does go with that board. This was all written for AVR Arduino like UNO and Mega.