chipKIT® Development Platform

Inspired by Arduino™


Created Mon, 16 Jan 2012 04:28:48 +0000 by Toolznglue


Mon, 16 Jan 2012 04:28:48 +0000

I'm currently attempting to compile the demo program for the OLED display contained on the Basic I/O shield and get errors indicating that the files corresponding to the headers cannot be found.

What is the correct directory tree that will allow me to use some of the Digilent supplied libraries without getting error statements that items cannot be found?

On a similar vein - what is the correct directory tree so that objects that I develop can be accessed easily

Thanks, Jerry Jankura Toolznlue


Mon, 16 Jan 2012 19:03:23 +0000

try putting it on C:\


Mon, 16 Jan 2012 21:16:15 +0000

I should have mentioned that I'm Mac OS X based.

Right now, I've got the downloaded code stored in its own subdirectory (folder) within the downloads directory.

While I'm at it, I'll describe the application.

I've built a 2x4 foot N-Scale model train layout which uses a total of 12 turnouts (switches). The turnouts are controlled by Atlas switch machines, which have quite a short duty cycle. I'm currently using a Max32 board to monitor 12 toggle switches and, when it senses a change in toggle switch state, sends a short pulse to the appropriate switch machine to move the turnout. I've built a simple power buffer to provide the current that the switch machines require - one pair of transistors for each switch.

Right now. I'm using a simple loop that cycles through the switch lines. Yes, the Chipkit Max32 is really not doing much work. I want to remedy that a bit by setting up the toggle switches to interrupt the processor whenever a toggle switch changes state. In addition, I want to use a timer interrupt to control the pulse width for the switch machine coils as well as things like highway crossing signals.

So, as a general question - how do I handle interrupts with the Chipkit Max32?

Thanks, Jerry Jankura