Monday, May 16, 2016

Cek alamat one wire LCD I2C dengan Arduino UNO

nih bagi yg main LCD I2C yang mau akses LCD i2c, nampilkan teks, charakter , scan ADRRESS nya dan lain lain monggo di comot dan ini link library nya
https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
download yg versi 1.3.4.zip


.
‪#‎include‬ <Wire.h>
void setup() {
Serial.begin (115200);
// Leonardo: wait for serial port to connect
while (!Serial)
{
}
Serial.println ();
Serial.println ("I2C scanner. Scanning ...");
byte count = 0;
Wire.begin();
for (byte i = 1; i < 120; i++)
{
Wire.beginTransmission (i);
if (Wire.endTransmission () == 0)
{
Serial.print ("Found address: ");
Serial.print (i, DEC);
Serial.print (" (0x");
Serial.print (i, HEX);
Serial.println (")");
count++;
delay (1); // maybe unneeded?
} // end of good response
} // end of for loop
Serial.println ("Done.");
Serial.print ("Found ");
Serial.print (count, DEC);
Serial.println (" device(s).");
}
void loop()
{
}

referensi :
https://www.facebook.com/stenlysetyady/posts/10201773280690273


Anda membutuhkan komponen elektronik , Arduino, Sensor, Tutorial(paket belajar), jasa pembuatan alat berbasis mikrokontroler, kendali lampu via jaringan LAN, dan sebagainya ? anda dapat membelinya di  
https://www.tokopedia.com/mikroholik

0 comments:

Post a Comment

Silakan dikomentari

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hot Sonakshi Sinha, Car Price in India