回复 weeming21
我改成这样了,可是有问题啊。谢谢。
复制代码
- counter = (input(pin_a0) + input(pin_a1) + input(pin_a2));
- if (counter=0)
- {
- lcd_putc("PL available:3");
- delay_ms(1000);
- lcd_putc("\fPL available:3");
- delay_ms(2000);
- lcd_putc("\fPL1-empty");
- lcd_putc("\nPL2-empty");
- delay_ms(1000);
- lcd_putc("\fPL3-empty");
- delay_ms(1000);
- }
- else if (counter=1)
- {
- lcd_putc("\fPL available:2/3");
- }
- else if (counter=2)
- {
- lcd_putc("\fPL available:1/3");
- }
- else if (counter=3)
- {
- lcd_putc("\fPL avialable:0");
- printf("\nParking Lot available:0");
- }
pikachew 发表于 2011-10-25 09:55 AM
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |