Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write following program in C Program Structure: // Import LCD Library #include /

ID: 3750716 • Letter: W

Question

Write following program in C

Program Structure: // Import LCD Library #include // Must be included in you code. // Defines for LCD //One of these lines will need to be in your code, exactly like this LiquidCrystal LedDriver(11, 9,5, 6,7,8); IThis line is for the Spring 2016 board LiquidCrystal LedDriver(A5, A4, 5, 6,7,8); // This line is for the Spring 2018 board int count SetUp: Start LCD // begin clear the display // clear zero count Loop: Every second Increment count Display count // print *Notice that two of the lines need to be included in your program exactly as shown in order to properly interface to the LCD. The pin numbers in the definition of LcdDriver are critical and are based on the traces from the schematic

Explanation / Answer


#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int num = 1;

void setup() {

Serial.begin(9600);
lcd.begin(16, 2);
delay(100);
lcd.print("CHEGG");
}

void loop() {
lcd.setCursor(0, 1);
lcd.print(" "); // for clear screen
lcd.setCursor(0, 1);
lcd.print(num);
mun = num + 1;
delay(1000);

}

the above code is written in C.

for increase every second i have taken delay of 1000ms ie is equal to 1 sec.

i have taken 2 coulomb lcd so on forst coulomb it will print "CHEGG", and in second coulomb it will display count which will change every second.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote