MENU

Fun & Interesting

Формирование задержек времени микроконтроллера | Микроконтроллеры с нуля #6

Video Not Working? Fix It Now

The library of microcontroller delays is quite convenient and practical. It is called as follows: _delay_ms (777) - the time in milliseconds is specified in brackets. Also, the time can be set in the number of cycles of the microcontroller and microseconds. In this video, the #define preprocessor directive is considered, which greatly facilitates the readability of the code. Time intervals are applied to the example of flashing LEDs, which improves the visualization of this process and increases the visibility of the function _delay. However, to apply a delay, you must first connect the delay library delay.h

Comment