not all code is 100% compatible:
https://thecustomizewindows.com/2018/05/difference-between-arduino-uno-and-arduino-mega/