According to class materials, If the following connections are made between the
ID: 3782299 • Letter: A
Question
According to class materials, If the following connections are made between the mbed and the PC1602F LCD, What is the correct line of code to instantiate a TextLCD object for the LCD?
LCD pins: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mbed pins: 1 39 1 24 1 19 no no no no 20 21 22 23 39 1
(Points : 5)
(a) TextLCD(24, 19, 20, 21, 22, 23);
(b) TextLCD(19, 20, 21, 22, 23, 24);
(c) TextLCD myLCDobject(19, 20, 21, 22, 23, 24);
(d) TextLCD myLCDobject(24, 19, 20, 21, 22, 23);
(e) None of (a) through (d) is the correct answer.
Explanation / Answer
If the following connections are made between the mbed and the PC1602F LCD,
LCD pins: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mbed pins: 1 39 1 24 1 19 no no no no 20 21 22 23 39 1
Correct line of code to instantiate a TextLCD object for the LCD will be:
TextLCD myLCDobject(19, 20, 21, 22, 23, 24)
Thank you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.