Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:aa5a8936af37, committed 2021-10-28
- Comitter:
- tzwell
- Date:
- Thu Oct 28 11:03:44 2021 +0000
- Parent:
- 0:84d44d377c03
- Commit message:
- Updated comments and code structure
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 84d44d377c03 -r aa5a8936af37 main.cpp --- a/main.cpp Fri Oct 08 15:30:49 2021 +0000 +++ b/main.cpp Thu Oct 28 11:03:44 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.write(PWM_PULSE_WIDTH); // Dioda ukljucena tokom 2 - while (1); // Izvrsavanje programa + while (true); // Izvrsavanje programa } /*