Button Module

Button Module Red(HKBM8006A)

Button Module Blue(HKBM8006B)

../../_images/button_1.png

This is a button, it is a digital moduele.

Specifications

  • Voltage: 3V~5V

  • Interface: Dupont Cable

  • Return Value: Returns 0 when pressed, 1 when unpressed

Wiring Diagram

../../_images/button_wire.png

This is a digital module, any pin in P1~P15 would work.

MakeCode Coding Tutorial

../../_images/mcbanner.png

../../_images/acbanner.png

This module can be used with Microbit and Meowbit.

Reading the button value:

Microbit:

../../_images/button_code.png

Sample Code

Meowbit:

../../_images/button_codeMeow.png

Sample Code

KittenBlock Coding Tutorial

../../_images/kbbanner.png

Load Robotbit Extension

../../_images/addRB.png

Reading the button value:

../../_images/button_code2.png