Difference between revisions of "PIC32 Example: HelloWorld"
From Mech
Jump to navigationJump to searchAndrew Long (talk | contribs) |
Andrew Long (talk | contribs) |
||
Line 2: | Line 2: | ||
Follow [[Directions for Starting New MPLAB Project]]. |
Follow [[Directions for Starting New MPLAB Project]]. |
||
Program to Blink LED on UBW32. Rate changes when holding USER switch button. |
|||
First include header files. GenericTypeDefs.h and Compiler.h are located in Microchip Framework and need to have search paths in MPLAB. HardwareProfile.h has global constants for the PIC board. |
|||
#include "GenericTypeDefs.h" |
|||
#include "Compiler.h" |
|||
#include "HardwareProfile.h" |
Revision as of 16:12, 10 July 2009
Download HelloWorld.zip.
Follow Directions for Starting New MPLAB Project.
Program to Blink LED on UBW32. Rate changes when holding USER switch button.
First include header files. GenericTypeDefs.h and Compiler.h are located in Microchip Framework and need to have search paths in MPLAB. HardwareProfile.h has global constants for the PIC board.
#include "GenericTypeDefs.h" #include "Compiler.h" #include "HardwareProfile.h"