Dwengo library

The goal of the Dwengo library is to make programming the Dwengo board as easy as possible. The library hides the low level details of the PIC18F4550 microcontroller, allowing the programmer to focus on the design of the algorithm. The dwengoBoard.h file contains many handy defines and the initBoard() function. Including dwengoConfig.h configures the PIC18F4550 to the default Dwengo configuration (48MHz). Besides this, the library contains functionality to ease the use of the ADC (dwengoADC.h), the USART (dwengoUsart.h), servos (dwengoServo.h), motors (dwengoMotor.h), the LCD (dwengoLCD.h), a remote control (dwengoRC.h) and delays (dwengoDelay.h). Note that the aim of the library is not to get maximum performance out of the Dwengo board, but to make programming the Dwengo board easy and accessible to everyone.

Program template

The following code shows how to use the Dwengo library.

 #include <dwengoBoard.h>
 #include <dwengoConfig.h>
 #include <dwengoADC.h>
 #include <dwengoMotor.h>
 // Include other files here... 
 void main(void) {
   // Declare variables here...

   // Initialise other functionality here...

   // The main loop goes here...

Using the Dwengo library in MPLAB

Download the dwengo-lib.zip and extract it. Copy the header files (*.h) in the h-directory of your MCC18 installation (usually C:\MCC18\h). Copy dwengo.lib in the lib directory of your MCC18 installation (usually C:\MCC18\lib).

You must add dwengo.lib to every project in which you want to make use of the functionality of the Dwengo library. You can do this in the following way. Click Project>Add Files to Project... Browse to C:\MCC18\lib\, select dwengo.lib and click Open.

 All Data Structures Files Functions Variables Defines

Generated on Wed Dec 25 2013 23:03:08 for Dwengo library by doxygen 1.7.3