Skip to main content
formatted code for readability
Source Link
sempaiscuba
  • 1k
  • 9
  • 22
  • 33

Upload this and it will read the resistance of your buttons on the lcd screen

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

/*  /*
Arduino 2x16 LCD Detect Buttons
resistance
*/

#include <LiquidCrystal.h>

//LCD pin to Arduino
const int pin_RS = 8; 
const int pin_EN = 9; 
const int pin_d4 = 4; 
const int pin_d5 = 5; 
const int pin_d6 = 6; 
const int pin_d7 = 7; 

const int pin_BL = 10; 

LiquidCrystal lcd( pin_RS,  pin_EN,  pin_d4,  pin_d5,  pin_d6,  pin_d7);

void setup() {
  
  lcd.begin(16, 2);

  lcd.setCursor(0,0);

  lcd.print("  Press Any Key ");
  lcd.setCursor(0,1);
  lcd.print("Resistance:");
}

void loop() {
  int x;
  x = analogRead (0);
  lcd.setCursor(12,1);
  lcd.print (analogRead (0));
  lcd.print("                ");
  delay (500);
  }

Upload this and it will read the resistance of your buttons on the lcd screen

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

Upload this and it will read the resistance of your buttons on the lcd screen

/*  /*
Arduino 2x16 LCD Detect Buttons
resistance
*/

#include <LiquidCrystal.h>

//LCD pin to Arduino
const int pin_RS = 8; 
const int pin_EN = 9; 
const int pin_d4 = 4; 
const int pin_d5 = 5; 
const int pin_d6 = 6; 
const int pin_d7 = 7; 

const int pin_BL = 10; 

LiquidCrystal lcd( pin_RS,  pin_EN,  pin_d4,  pin_d5,  pin_d6,  pin_d7);

void setup() {
  
  lcd.begin(16, 2);

  lcd.setCursor(0,0);

  lcd.print("  Press Any Key ");
  lcd.setCursor(0,1);
  lcd.print("Resistance:");
}

void loop() {
  int x;
  x = analogRead (0);
  lcd.setCursor(12,1);
  lcd.print (analogRead (0));
  lcd.print("                ");
  delay (500);
  }
added 85 characters in body
Source Link

Upload this and it will read the resistance of your buttons on the lcd screen

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

Upload this and it will read the resistance of your buttons on the lcd screen

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

deleted 34 characters in body
Source Link

upload this code and the resistance of each button will be shown on screen

/* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

upload this code and the resistance of each button will be shown on screen

/* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

/* /* Arduino 2x16 LCD Detect Buttons resistance */

#include <LiquidCrystal.h>

//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }

void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }

deleted 22 characters in body
Source Link
Loading
deleted 2 characters in body
Source Link
Loading
Source Link
Loading