MPLAB x IDE header file tutorial

Поділитися
Вставка
  • Опубліковано 25 чер 2024
  • #arduino #mplabx #coding #programming #microcontroller #tutorial
    In this quick video i will show you how to add a header file in MPLAB, We can add functions in the header file that we can use for multiple programs.
    In this example i will add a header file for LEDs, as you can see first, i coppied the code, then i right clicked header files then i press NEW, then xc8 header dot H.
    I name my header file then i hit finish.
    Now the hader window is automatically oppened, i simply paste the code for the LED.
    We are almost done, last step is to add include the header file in the main code, we do this by oppening the main code then we type #include "name of our header file dot H"
    Dont forget to like and follow for more
  • Наука та технологія

КОМЕНТАРІ •