Wednesday, December 26, 2018
T6
void main()
{
TRISB=0xFF;
TRISC=0;
Lcd_Init(&PORTC);
Lcd_Cmd(LCD_CURSOR_OFF);
Lcd_Cmd(LCD_CLEAR);
Lcd_Out(1,2," SMART LEARNING");
Lcd_Out(2,1," ADVANCE PIC BY C");
while(1)
{
RETURN:if(PORTB.F0==0)
{
Lcd_Cmd(LCD_SHIFT_RIGHT);
while(PORTB.F0==0);
}
if(PORTB.F1==0)
{
Lcd_Cmd(LCD_SHIFT_LEFT);
while(PORTB.F1==0);
}
if(PORTB.F2==0)
{
while(1)
{
Lcd_Cmd(LCD_SHIFT_RIGHT);
delay_ms(100);
if(PORTB.F0==0||PORTB.F1==0)goto RETURN;
}
}
}
}
Subscribe to:
Post Comments (Atom)
สรุปงานที่ 5 Internet of Things (IoT)
Internet of Things (IoT) คืออะไร Internet of Things (IoT) คือ "อินเตอร์เน็ตในทุกสิ่ง" หมายถึง การที่อุปกรณ์ต่างๆ ส...
-
Digital Speedometer and Odometer Circuit using PIC Microcontroller EMBEDDED By Aswinth Raj Jul 27, 2017 24 Digital Speedometer and...
-
How to Save Data using EEPROM in PIC16F877A Microcontroller By Aswinth Raj Aug 10, 2017 2 Saving Data using...
-
Generating PWM using PIC Microcontroller with MPLAB and XC8 EMBEDDED By Aswinth Raj Mar 15, 2017 35 Generating PWM using PIC Micr...
No comments:
Post a Comment