#include "mcc_generated_files/mcc.h" #include "led_driver.h" /* Main application */ 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 Interrupts // Use the following macros to: // Enable the Global Interrupts INTERRUPT_GlobalInterruptEnable(); //INTERRUPT_PeripheralInterruptEnable(); // Disable the Global Interrupts //INTERRUPT_GlobalInterruptDisable(); init_led_driver(); led_reset(); while (1) { // Add your application code if(MTOUCH_Service_Mainloop()) { led_decode_position(); } } } /** End of File */