Code portability - Uno, Leonardo, SparkIO - and language definition

This thread might help:

The one you want for Spark is:

#define SPARK_CORE (1)

for version 1 of the core. Arduino has a similar version number but I don’t know about the flavors of Arduino.

2 Likes