Octopus Electronic Bricks! You can use them build electronics projects just as easy as piling bricks! By using Octopus electronic bricks, you may connect Arduino or compatible boards easily with various digital, analog and I2C/Uart interfaces. These breadboard-less firm connections includes an extensive collection of modules like potentiometers, sensors, relays, servos, and even buttons. Just plug and play!
The Octopus Digital Push Button brick is ideal for a beginner class in Arduino programming, or as the first sensor in your project. It can easy be used with Chipkit, STM32, AVR, ARM and other mirc-MCU.
Big button module pin definition: (1) Output (2) VCC (3) GND
Connect the push button brick to P0 port on OCTOPUS:BIT.
You can see the whole program from the link here
When the button isn't pressed, micro:bit will display a rectangle; when it is pressed, micro:bit will display a heart.
Please visit the ElecFreaks wiki page for more info about this product. It will be appreciated if you can help us improve the documents, add more demo code or tutorials.