Your shopping cart is empty!
Octopus Digital Push Button Brick - Blue Button
- Brands Elecfreaks Code: BRK-PBM-BL
Octopus Electronic Bricks, you can use them to build electronics projects just as easy as piling bricks. By using Octopus electronic bricks, you may connect Arduino/Freaduino compatible boards easily with various digital, analog, and I2C/Uart interfaces. These the breadboard-less firm connection are prepared to extensive modules like potentiometers, sensors, relays, servos even buttons, just plug and play.
This is a digital push-button sensor, which detects your press action. It is ideal for beginner class to test the Arduino or be your first sensor in your project. It was easy to be used for Chipkit, STM32, AVR, ARM, and other micro-MCU.
As the connector is SVG, this module/brick is compatible with:
Hardware Connection:
Connect to the P1 port on sensor:bit.
Programming:
Click the "Advanced" selection in the Makecode to check more coding selections.
We need to add a package for the coding. Click "Add package" from the bottom of the page and search"Tinker-kit" in the dialog box, then download the equivalent package. (Pointed by the red arrows below)
Code:
Program links: https://makecode.microbit.org/38481-95858-44715-13060
Results:
While the button is pressed, an icon is showing on the micro:bit; while released, a rectangle is showing on the micro:bit.