So I was trying to run this simple code but an error which indicates that I dont have the ffi library popped up. This is only happening on my VM Raspberry Pi environment though. When I use Thonny on my windows OS it was working okay no errors.
I tried to install micropython-ffi but it wont install saying that it couldnt find version:
Then I tried to update the firmware but to no avail.