2:Р msg[0] = ’2’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 3:Р msg[0] = ’3’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 4:Р msg[0] = ’4’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 5:Р msg[0] = ’a’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 6:Р msg[0] = ’b’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 7:Р msg[0] = ’c’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Рcase 8:Р msg[0] = ’d’;Р ioctl(fd_textlcd, TEXTLCD_LINE1);Р write(fd_textlcd, msg, strlen(msg));Р break;Р}Рusleep(500000);Рmemset(buf,0,sizeof(buf));Р}Рclose(fd_keypad);Рreturn 0;Р}