Rotate a 3D object when pressing a button

Make things

A 3D object on a browser rotates when a button is pressed.

Materials

How to make

Hardware connection

Referring to the library, of the two pins on the button, connect one to number 0 on the obniz Board and the other to number 1.

Program