Programming: Enabling Interrupts (Library and Global Interrupt Command)

To enable interrupts, a library (header file) must be included:



#include avr/interrupt.h In the main function (before the endless loop) the global interrupt command must be invoked: sei();
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.