![]() Here’s one I used for some uplights I wanted. I have NeoPixelBus working fine on quite a few of my projects. Sorry, tried several times to wrap the code using. #define NUMPIXELS 143 // Number of pixels in stripĬhar auth = "AUTH TOKEN HERE" // You should get Auth Token in the Blynk App.īlynk.begin(auth, "SSID HERE", "PASSWORD HERE") This is using the standard Adafruit library. ![]() I have some more info on my blog if anyone is interested in how I set it up. I used the zeRGBa from the Blynk app and set it to merge instead of split on the virtual pin. I could clean it up more, but meh it complies. I used db3’s and Flopp’s code and modified it to work on the ESP8266. Pixels.show() // This sends the updated pixel color to the hardware. tPixelColor(i, pixels.Color(R,G,B)) // Moderately bright green color. If (F_CPU = 16000000) clock_prescale_set(clock_div_1) īLYNK_WRITE(V1) // Widget WRITEs to Virtual Pin V1 These are the interrupt and control pins for СС3000īlynk.begin(auth, "SSID", "PASS", WLAN_SEC_WPA2) #define BLYNK_PRINT Serial // Comment this out to disable prints and save space Change WiFi ssid, pass, and Blynk auth token Update pin definitions according to your setup. * Note: Firmware version 1.14 or later is preferred. * For this example you need Adafruit_CC3000_Library library: * Feel free to apply it to any other example. * This example shows how to use Adafruit CC3000 breakout * Blynk library is licensed under MIT license * projects by simply dragging and dropping widgets. * You can easily build graphic interfaces for all your * Arduino, Raspberry Pi and the likes over the Internet. * Blynk is a platform with iOS and Android apps to control I have get it to work, but on UNO not ESP8266. Return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3) Return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3) Return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0) ![]() The colours are a transition r - g - b - back to r. Input a value 0 to 255 to get a color value. Go to the Project Settings (nut icon).īlynk.begin(auth, "myNetwork", "myPass") You should get Auth Token in the Blynk App. #define BLYNK_PRINT Serial // Comment this out to disable prints and save spaceĪdafruit_NeoPixel strip = Adafruit_NeoPixel(8, PIN, NEO_GRB + NEO_KHZ800) I did have NodeMCU on it, but uploaded the latest AT firmware and same result.īelow is the code. The neopixels won’t even light up and its an 8-pixel stick that I know to be working. I set up the slider correctly on V1, chose pin 2 for the data pin. The virtual pins confused me at first, but I think I understand them now. Then I decided to try the Neopixel example working, but no luck. I just discovered Blynk and managed to get the BlynkBlink example working with my ESP-07. ![]()
0 Comments
Leave a Reply. |