{"product_id":"10pcs-tb371-4-key-mcu-keyboard-button-board-compatible-uno-mega2560-pro-mini-nano-due-for-raspberry","title":"10pcs TB371 4 Key MCU Keyboard Button Board Compatible UNO MEGA2560 Pro Mini Nano Due for Raspberry","description":".size_table_start table,.size_table_start table tr td { border:2px solid #ddd;}.size_table_start table { width: 100%; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;}.size_table_start,.size_table_end {clear:both;}       \u003ctable class=\"table_inch\"\u003e    \u003ctbody\u003e     \u003ctr\u003e      \u003ctd\u003e\u003c\/td\u003e     \u003c\/tr\u003e     \u003ctr\u003e      \u003ctd\u003e\u003c\/td\u003e     \u003c\/tr\u003e    \u003c\/tbody\u003e   \u003c\/table\u003e             Description:       ??       1. 4-button Common Cathode key module(When pressed output low level).?       2. GND K1 K2 K3 K4 4 PIN OUT? 2.54mm       3. Working voltage: DC 0-48V?       4. Size: 12.7 x 33mm       5. It can be inserted directly into Arduiuo?uno3?mega2560 due,?for linking up to your? Arduiuo?uno3?Mini Nano Mega2560 Breadboard for raspberry pi banana pi? etc,or others MCU PLD CPU ( AVR STM32 ARM PIC C51 NRF24LE1 CC2530 MSP430 STM8 FPGA CPLD etc.)   \u003cbr\u003e   \u003cbr\u003e                \u003cp\u003eCircuit schematics:\u003c\/p\u003e     \u003cp style=\"font-size:\"\u003e\u003cbr\u003e\u003c\/p\u003e     \u003cp style=\"font-size:\"\u003e\u003cimg src=\"https:\/\/ae01.alicdn.com\/kf\/HTB1CdiHGpXXXXb6aXXXq6xXFXXXG\/221872405\/HTB1CdiHGpXXXXb6aXXXq6xXFXXXG.jpg\"\u003e\u003c\/p\u003e     \u003cbr\u003e     \u003cbr\u003eArduiuo?uno3\/mega2560 Code             ?             \/\/******************************************************\/\/                         \/*                Arduiuo_4key_uart                \u003cbr\u003e                This example code is in the public domain.                *\/                \u003cbr\u003e                \/\/ Define key pin                int K1 = 13;                int K2 = 12;                int K3 = 11;                int K4 = 10;                \u003cbr\u003e                \/\/ variables will change:                int buttonState = 0; \/\/ variable for reading the pushbutton                \u003cbr\u003e                \/\/ the setup routine runs once when you press reset:                void setup() {                \/\/ initialize the keys pin as an input.                \u003cbr\u003e                pinMode(K1, INPUT);                pinMode(K2, INPUT);                pinMode(K3, INPUT);                pinMode(K4, INPUT);                \u003cbr\u003e                \/\/Activate key pin internal pull-up resistors                digitalWrite(K1, HIGH);                digitalWrite(K2, HIGH);                digitalWrite(K3, HIGH);                digitalWrite(K4, HIGH);                \u003cbr\u003e                \/\/ initialize serial communications at 9600 bps:                Serial.begin(9600);                }                \u003cbr\u003e                \/\/ the loop routine runs over and over again forever:                void loop() {                \u003cbr\u003e                buttonState = digitalRead(K1);                if(!buttonState)Serial.print(k1 n );                do                {                buttonState = digitalRead(K1);                }                while(!buttonState);\/\/Wait button release                \u003cbr\u003e                buttonState = digitalRead(K2);                if(!buttonState)Serial.print(k2 n );                do                {                buttonState = digitalRead(K2);                }                while(!buttonState);\/\/Wait button release                \u003cbr\u003e                buttonState = digitalRead(K3);                if(!buttonState)Serial.print(k3 n );                do                {                buttonState = digitalRead(K3);                }                while(!buttonState);\/\/Wait button release                \u003cbr\u003e                buttonState = digitalRead(K4);                if(!buttonState)Serial.print(k4 n );                do                {                buttonState = digitalRead(K4);                }                while(!buttonState);\/\/Wait button release                \u003cbr\u003e                delay(100);                }                ? ??         ?\/\/******************************************************\/\/    \u003cbr\u003e    \u003cbr\u003ePackage Included:    \u003cbr\u003e    \u003cbr\u003e10 x?4 Key MCU Keyboard Matrix Button Board          \u003cbr\u003e    \u003cbr\u003e     \u003cp\u003e\u003cimg src=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/9F\/C8\/ce9ef267-bfe2-4eae-b190-09d9e535d591.JPG\"\u003e\u003c\/p\u003e   \u003cp\u003e\u003cimg src=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/62\/41\/c1f554b6-d9df-49fa-a80c-c6f99f7a4331.JPG\"\u003e\u003c\/p\u003e   \u003cp\u003e\u003cimg src=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/95\/56\/7cc9a8ea-9009-4791-87f5-58e3957284e2.JPG\"\u003e\u003c\/p\u003e   \u003cp\u003e\u003cimg src=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/31\/7A\/dfba6a85-9053-411b-b0c9-953907e374d1.JPG\"\u003e\u003c\/p\u003e   \u003cp\u003e\u003cimg src=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/81\/1E\/98002699-11ee-4773-b378-7082e9ff6899.JPG\"\u003e\u003c\/p\u003e   \u003cbr\u003e","brand":"ZHIQIAN","offers":[{"title":"Default Title","offer_id":43928711364803,"sku":"ZHIQIAN-002728","price":478.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0661\/4355\/1683\/files\/ce9ef267-bfe2-4eae-b190-09d9e535d591.jpg?v=1725739555","url":"https:\/\/wrsss.com\/products\/10pcs-tb371-4-key-mcu-keyboard-button-board-compatible-uno-mega2560-pro-mini-nano-due-for-raspberry","provider":"Wrsss","version":"1.0","type":"link"}