AnyCube uses a proprietary firmware that looks like a custom version of Marlin.
I found this to help with understand, https://all3dp.com/2/anycubic-i3-mega-firmware-update/
You will find many threads talking about what is required to support this hardware. I suggest you get a fresh cup of your fav beverage, and hit the search here on this forum for further on the subject.