<<PICxoid - Simulation Board>> indirmek için tıklayınız.
Uygulamaya ait kodları indirmek için tıklayınız.
void main(void) { // Initialize the device SYSTEM_Initialize(); // If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts // If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts // Use the following macros to: // Enable the Global Interrupts //INTERRUPT_GlobalInterruptEnable(); // Disable the Global Interrupts //INTERRUPT_GlobalInterruptDisable(); // Enable the Peripheral Interrupts //INTERRUPT_PeripheralInterruptEnable(); // Disable the Peripheral Interrupts //INTERRUPT_PeripheralInterruptDisable(); LCD_Ayarla(); LCD_MetinYaz(1,1,"PICxoid"); LCD_MetinYaz(2,1,"LCD Uygulamasi"); DELAY_milliseconds(1000); while (1) { // Add your application code if (BUTON1_GetValue() == 0) { //Butona basildi LCD_MetinYaz(2,1,"BUTON1'e basildi"); } else { LCD_MetinYaz(2,1,"butona basilmadi"); } } }