chipKIT® Development Platform

Inspired by Arduino™

SPI.h shutting down pin 29

Created Tue, 05 Jun 2012 09:04:36 +0000 by Vittorio


Tue, 05 Jun 2012 09:04:36 +0000

Hi all, I'm porting a project (that was working) from the Arduino 32 Max to the chipkit max32.

Basically i need to use some digital I/O pins and the SPI to read an SD card and control some devices (OLED SCREENS)

**I have noticed a strange fact, if I use the SPI i lose the control over the pin 29 (and maybe others..) i.e. i set it high and i find it low. In the documentation i have found no explicit relation between the spi and the pin 29. **

I don't know what's going on... is #include<spi.h> not enough to use the spi on the chipkit32 properly (maybe i should use another specific library?)

is there something deep about the hardware that i'm loosing?

thanks for any hint.


Wed, 06 Jun 2012 14:41:34 +0000

--- Update: actually I have not the control on several digital output... not only the 29