Limited record: this part has neither specifications nor a datasheet in the catalog yet. It is shown for reference and is not indexed.

BTN-01 – Button BTN-01

Button

Maker, Prototyping, Open-Hardware & Developer Boards

  • BTN-01
Manufacturer part number
BTN-01
Manufacturer
FriendlyElec
Product Code
BTN-01

FriendlyElec BTN-01, listed under “Maker, Prototyping, Open-Hardware & Developer Boards”.

Product overview

Button BTN-01

0 reviews / Write a review

(USD)

Buyer responsible for payment of duty.

Brand: FriendlyElec

Product Code: BTN-01

Qty:

Description

Reviews (0)

1 Introduction

The Matrix-Button is an instant(non self-lock) button. The button's status can be read from pin S in the 3-pin 2.54 mm spacing pin header. If the button is not pressed S will output high otherwise S will output low.

2 Features

Instant, non self-lock

Tiny, easy to be used in various situations

2.54mm spacing pin

3 How To

Connect to Tiny4412 SDK (1506) Connect the module's pin S to GPIO PIN1, pin V to 5V and pin G grounded

Code Sample in C Under Linux

#include <stdio.h> #include "libfahw.h" static struct sensor button [ ] = { { TINY4412_GPIO_PIN1, IRQ_TYPE_EDGE_FALLING, } }; int main ( void ) { int i; int retSize = - 1; char value [ ARRAY_SIZE ( button ) ]; int devFD = - 1; if ( ( devFD = sensorInit ( button, ARRAY_SIZE ( button ) ) ) == - 1 ) { printf ( "Fail to init sensor " ); return - 1; } printf ( "Press the button... " ); if ( ( retSize = sensorRead ( devFD, value, ARRAY_SIZE ( button ) ) ) == - 1 ) { printf ( "Fail to read sensors " ); } if ( retSize > 0 ) { i = 0; for ( i = 0; i < retSize; i ++ ) { printf ( "Button[%d]:%d ", i, value [ i ] ); } } sensorDeinit ( devFD ); return 0; }

Compile and Run

git clone http: // github.com / friendlyarm / fa-hardware.git cd fa-hardware cd demo cd matrix-button make Copy your compiled bin to your board and you are ready to go.

Resources

Write a review

Write a review

Your Name

Your Review

Note: HTML is not translated!

Rating Bad

Good

Enter the code in the box below

Continue

Copyright © 2008-2026 friendlyelec.com All rights reserved.

Top

Categories

CPU Module (11)

Mini Board (3)

NanoPC & NanoPi (31)

Hats & Docks (12)

Enclosure & Holder (17)

BakeBit Sensors/Modules (2)

Matrix Accessories (71)

LCD Module (17)

Value Pack & Kit (11)

See all specifications

Highlights

  • Product Code: BTN-01

See also

Technical questions

Ask a question

No published question about this part yet. Questions are reviewed before publication.

Request a quote