//Author: Carmelito Andrade,License: Creative Commons License CC BY-SA 3.0 // This #include statement was automatically added by the Spark IDE. #include "neopixel/neopixel.h" // name the pins int led1 = D4; int led2 = D1; // IMPORTANT: Set pixel COUNT, PIN and TYPE #define PIXEL_PIN D3 #define PIXEL_COUNT 5 #define PIXEL_TYPE WS2811 #define PiezoPin D0 Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); // This routine runs only once upon reset void setup() { strip.begin(); strip.show(); // Initialize all pixels to 'off' //Register our Spark function here Spark.function("rocket", rocketControl); pinMode(PiezoPin, OUTPUT); Serial.begin(9600); Serial.println("in setup"); delay(5000); beeps();//beep to indcate that rocket has powered on } // This routine loops forever void loop() { //Un-Comment for Testing Neo-pixel connection after soldering the Neo-Pizel /*uint16_t i; for(i=0; i