CODE
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int aval,temp_aval=0;
void setup()
{
lcd.begin();
lcd.setCursor(0,0);
lcd.print("aval = ");
}
void loop()
{
aval = analogRead(A0);
if (temp_aval != aval)
{
lcd.setCursor(7,0);
lcd.print(" ");
}
lcd.setCursor(7,0);
lcd.print(aval);
temp_aval = aval;
delay(300);
}
รูป
Thursday, September 27, 2018
Subscribe to:
Post Comments (Atom)
สรุปงานที่ 5 Internet of Things (IoT)
Internet of Things (IoT) คืออะไร Internet of Things (IoT) คือ "อินเตอร์เน็ตในทุกสิ่ง" หมายถึง การที่อุปกรณ์ต่างๆ ส...
-
Method to Control 8*8 LED Matrix using Shift Register IC 74595 and Arduino Mega by realfinetime electronics | in LED Matrix at 22:05...
-
This tutorial is about placing data in a specific ram(random access memory) location/address using xc8 compiler and mplabx ide. I am using ...
-
Digital Speedometer and Odometer Circuit using PIC Microcontroller EMBEDDED By Aswinth Raj Jul 27, 2017 24 Digital Speedometer and...
No comments:
Post a Comment