Information
Item weight
Barcode
Created time
Last updated on
Item description
หน้าจอพร้อมปุ่มกด LCD แบบ Shield บน Arduino




ตำแหน่งขาต่างๆ

Pin Function
Analog 0 Button (select, up, right, down and left)
Digital 4 DB4
Digital 5 DB5
Digital 6 DB6
Digital 7 DB7
Digital 8 RS (Data or Signal Display Selection)
Digital 9 Enable
Digital 10 Backlit Control

ตัวอย่าง Code การใช้งาน หน้าจอพร้อมปุ่มกด LCD แบบ Shield บน Arduino กับ Uno r3 


/**
 * www.ModuleMore.com
 * ตัวอย่างการใช้งาน Shield LCD พร้อมปุ่มกด
 */
#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal.h>


const int LCD_RS = 8;
const int LCD_EN = 9;
const int LCD_D0 = 4;
const int LCD_D1 = 5;
const int LCD_D2 = 6;
const int LCD_D3 = 7;
const int BUTTON_INPUT = A0;
// const int LCD_BLACKLIGHT = 10;

LiquidCrystal lcd(LCD_RS, LCD_EN, LCD_D0, LCD_D1, LCD_D2, LCD_D3);
void setup()
{
 lcd.begin(16, 2);
 lcd.setCursor(0, 0);         
 lcd.print("ModuleMore.com");
 lcd.setCursor(0, 1);
 lcd.print("Press Key:");
}
void loop()
{
 int val = analogRead(BUTTON_INPUT);  
 lcd.setCursor(10, 1);

 if (val < 60)
 {
   lcd.print("Right ");
 }
 else if (val < 200)
 {
   lcd.print("Up ");
 }
 else if (val < 400)
 {
   lcd.print("Down ");
 }
 else if (val < 600)
 {
   lcd.print("Left ");
 }
 else if (val < 800)
 {
   lcd.print("Select");
 }
}






Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,276 view(s)
Visitors1,333,002 time(s)
Last updatedSep 5, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me