example snippet for cross compatible Arduino / Spark libraries