The pyboard build-in accelerometer only have accelerometer.... The mpu6050 have gyroscope and accelerometer. In the main.py are commented the code for use the build-in accelerometer:
#accel = pyb.Accel() imu = MPU6050()
.....
#x, y, z = accel.filtered_xyz() x, y, z = imu.get_xyz()
......
You only have to switch this commented lines.
The problem with the built-in accelerometer is that when you shake, it throw wrong data... I have checked the accelerometer documentation and it can determine shake movements, but this feature seems not implemented in the micropython pyboard.
Finally found this