Created
August 1, 2018 02:00
-
-
Save monkbroc/ebe3ba49177f88696e1a507f8bcb4169 to your computer and use it in GitHub Desktop.
Pass make options to Particle cloud compile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build with | |
// particle compile photon . build.mk | |
void setup() { | |
pinMode(BLINK_PIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(BLINK_PIN, HIGH); | |
delay(1000); | |
digitalWrite(BLINK_PIN, LOW); | |
delay(1000); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See USER_MAKEFILE in https://github.com/particle-iot/firmware/blob/develop/docs/build.md#variables | |
CPPFLAGS+=-DBLINK_PIN=D7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment