![](/media/cache/profiles/nikki.png.50x50_q85.jpg)
PWM program which uses PwmOut class determening whether LED state can be seen (19E042PIM).
Revision 1:4397be8fc587, committed 2021-10-28
- Comitter:
- tzwell
- Date:
- Thu Oct 28 11:03:26 2021 +0000
- Parent:
- 0:eb7eef6774a2
- Commit message:
- Updated comments and code structure
Changed in this revision
mian.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mian.cpp Fri Oct 08 15:29:22 2021 +0000 +++ b/mian.cpp Thu Oct 28 11:03:26 2021 +0000 @@ -36,10 +36,12 @@ */ int main() { + // Inicijalizacija i funckije koje se jednom izvrsavaju: + // Prvo se zada period treperenja diode, a potom trajanje impulsa: DiodicaNaPloci.period_ms(PWM_PERIOD); // Period treperenja traje 4 sekunde DiodicaNaPloci.pulsewidth_us(PWM_PULSE_WIDTH); // Dioda ukljucena tokom 2 - while (1); // Izvrsavanje programa + while (true); // Izvrsavanje programa } /*