Qwiic + Mega2560?

I was wondering if it’s possible to connect my Qwiic shield to a mega2560? A program I need to run requires too much space and when compiling, I get this message:

“data section exceeds available space in boardGlobal variables use 14286 bytes (697%) of dynamic memory, leaving -12238 bytes for local variables. Maximum is 2048 bytes. Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint. Error compiling for board Arduino Uno.”

I need to use a spectral sensor specifically designed with the i2c system.

Please advise.

The Mega has it’s I2C pins in a different place than the shield so it won’t work.

A way around this would be to use our [Qwiic Breadboard Cable and connect the wires as follows:

  • - Red to 3.3V
  • - Black to GND
  • - Yellow to SCL (Pin 21)
  • - Blue to SDA (Pin 20)
  • ](https://www.sparkfun.com/products/14425)