jenesaisdiq / SparkButton

Library for the Spark Button Shield
Other
7 stars 34 forks source link

'PIN_MAP' was not declared in this scope #6

Open rdematos opened 9 years ago

rdematos commented 9 years ago

Unable to build for the Photon. Veryfing code using this library in Particle Build fails with this error:

SparkButton/SparkButton.cpp:689:9: error: 'PIN_MAP' was not declared in this scope
         PIN_MAP[pin].gpio_peripheral->BSRR = PIN_MAP[pin].gpio_pin
dmiddlecamp commented 9 years ago

ran into this today as well

edit: I've heard that the PIN_MAP is exposed in the newer firmware, so this should go away when the web IDE is updated to target the latest version