Steun onze actie WeGoSTEM

Voor onze actie WeGoSTEM zoeken we nog vrijwilligers. Doe mee via

In order to ease programming of the Dwengo board we have developed a library which covers the basic functionality of the board. This library hides all low level implementation details of the PIC18F4550 microcontroller. Using this library, you can quickly make your own complex projects without loosing track in all the details.

To use the Dwengo library, all you need to do is to download and extract the zip file. Next, you move the lib-file to the folder C:\MCC18\lib while you move the header files to the folder C:\MCC18\h. Finally, using the MPLAB IDE you make your MPLAB project for the PIC18F4550 and you add the dwengo.lib to the project. The following framework can be used to integrate the library into your project:

  1. #include <dwengoBoard.h>
  2. #include <dwengoConfig.h>
  3. #include <dwengoADC.h>
  4. #include <dwengoMotor.h>
  5. // Include other files...
  7. void main(void) {
  8. // Define some variables...
  10. initBoard();
  11. initADC();
  12. initMotor();
  13. // Initialize functionality...
  15. // Write main loop here...
  16. }