So… for the digital input by using a button, I choose to use my 3D prism as a button.

I made it transform into a prime power prism… If its legs are put to the right place

on the bread board, it will be just like pushing a button. And I made 2 versions, one

is pull down, the other one is pull up.

Pull down


Pull up


Here’s the code