Expansion Ports SDA & SCL

I’m trying to replicate the Fritzing digital Blink and PWM Fading examples on my Sparki on the expansion board pins SDA (2) and SCL(3).

The examples work fine an my Sparki if its the only thing I do. But as soon as I include the Sparki library all I get is a voltage increase from 3.33 to 3.46 Volt when I’m doing a digitalWrite on pin SDA (2) or analogWrite on pin SCL(3).

I did look into the sparky library. but couldn’t figure out where the interference is coming from.

These ports are also i2c ports for the magnetometer and the accelerometer, so they change status when they’re also being used by those two. You should be able to turn them off by including the following defines at the top of your code:

#define NO_ACCEL 1
#define NO_MAG 1