obniz Blog
This blog is an archive of past articles. For the latest updates, visit iot.obniz.com.

Rotate a 3D object when pressing a button

(Updated2020.05.21)Parts Example

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