Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

How to display number on LCD through user input

$
0
0
previously I learned how to display message on LCD screen. Now I want to increase complexity of program. I want to make program for following condition
if button 1 pressed than display number 1 on LCD
if button 2 pressed than display number 2 on LCD
else don't show any value


View attachment 131135

Code (Text):
  1. #include<reg51.h>
  2. #define port P1           /* Data pins connected to port P1 */
  3. sbit RS = P2^0;           /* RS pin connected to pin 0 of port P2 */
  4. sbit RW = P2^1;...
How to display number on LCD through user input

Viewing all articles
Browse latest Browse all 4923

Trending Articles