PreorderLCD 1602 Keypad Shield for Arduino Uno
Informasi Produk LCD 1602 Keypad Shield for Arduino Uno
LCD 1602 Keypad Shield for Arduino
Features :
This is a 16x2 LCD Keypad module for Arduino
Blue Backlight with white words
Uses 4 Bit Ardui-no LCD Library
100% brand new and high quality
GP2D12 ranging code:
#include LCD4Bit_mod.h
LCD4Bit_mod lcd = LCD4Bit_mod(2);
char GP2D12;
char a,b;
char str1[]="Renge:";
char str2[]=" Renge Over ";
char str3[]="cm";
void setup()
lcd.init();
lcd.clear();
lcd.printIn("GP2D12 testing...");
void loop()
GP2D12=read_gp2d12_range(1);
if(GP2D12>80||GP2D12 10 )
lcd.cursorTo(2,0);
lcd.printIn(str2);
else
a=0x30+GP2D12/10;
b=0x30+GP2D12%10;
lcd.cursorTo(2, 3);
lcd.printIn(str1);
lcd.print(a);
lcd.print(b);
lcd.printIn(str3);
delay(50);
float read_gp2d12_range(byte pin)
int tmp;
tmp = analogRead(pin);
if (tmp < 3)return -1;
return (6787.0 /((float)tmp - 3.0)) - 4.0;
Package Included:
1 x Keypad Shield LCD1602
Spesifikasi LCD 1602 Keypad Shield for Arduino Uno
Panduan Penggunaan
Ulasan LCD 1602 Keypad Shield for Arduino Uno
Respon pertanyaan calon pembeli melalui kotak pesan toko.
Cek PesanLogin untuk melakukan diskusi produk dengan penjual
LoginDiskusi Produk LCD 1602 Keypad Shield for Arduino Uno
