Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Before main:

    • A place to declare constants, additional function prototypes, global variables

  • Inside main outside the loop:

    • A place for any setup or functions you want to run once before the loop

  • Inside the while loop:

    • Code that will be run repeatedly and often contains the main system behavior

    • Please add the following line here at the end of the user code section to ensure the MCU doesn’t overload the ADC:

      • HAL_Delay(10);

  • After main:

    • Where you write functions that match any function prototypes you have added

...