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
| #include <Parse.h> | |
| #include <Wire.h> | |
| #include "RTClib.h" | |
| #include <Adafruit_NeoPixel.h> | |
| #include <Bridge.h> | |
| #include <Console.h> | |
| #include <FileIO.h> | |
| #include <HttpClient.h> | |
| #include <Mailbox.h> | |
| #include <Process.h> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Clock</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| ul { | |
| list-style: none; | |
| margin: 0; |
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
| #include <Servo.h> // Use Servo library, included with IDE | |
| Servo myServo; // Create Servo object to control the servo | |
| void setup() { | |
| myServo.attach(9); // Servo is connected to digital pin 9 | |
| } | |
| void loop() { | |
| myServo.write(0); // Rotate servo counter clockwise | |
| delay(2000); // Wait 2 seconds |
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
| /* | |
| SEEED Studio Stepper Motor Control - one revolution | |
| Adapts the Stepper example for use with the SEEED STUDIO motor shield. | |
| This program drives a unipolar or bipolar stepper motor | |
| by using the included Stepper library of the Arduino. | |
| The motor is attached to the Seeed Studio motor shield and an Arduino. | |
| The digital pins 8,11,12,13 drive the L298N and are used when creating the stepper object | |
| Digital pins 9 and 10 must be high to enable the chip. |
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
| //Download Adafruit_NeoPixel.h here: https://github.com/adafruit/Adafruit_NeoPixel | |
| #include <Adafruit_NeoPixel.h> | |
| // Which pin on the Arduino is connected to the NeoPixels? | |
| #define PIN 6 | |
| // How many NeoPixels are attached to the Arduino? | |
| #define NUMPIXELS 1 |
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
| //Download Adafruit_NeoPixel.h here: https://github.com/adafruit/Adafruit_NeoPixel | |
| #include <Adafruit_NeoPixel.h> | |
| // Which pin on the Arduino is connected to the NeoPixels? | |
| #define PIN 6 | |
| // How many NeoPixels are attached to the Arduino? | |
| #define NUMPIXELS 1 |
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
| int sensorPin = A0; // select the input pin for the potentiometer | |
| int sensorValue = 0; // variable to store the value coming from the sensor | |
| void setup() { | |
| // declare the ledPin as an OUTPUT: | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| // read the value from the sensor: |
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
| #include <Adafruit_NeoPixel.h> | |
| #define PIN 6 | |
| // Parameter 1 = number of pixels in strip | |
| // Parameter 2 = Arduino pin number (most are valid) | |
| // Parameter 3 = pixel type flags, add together as needed: | |
| // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) | |
| // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) | |
| // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) |
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
| #include <Adafruit_NeoPixel.h> | |
| #define PIN 13 | |
| #define NUMPIXELS 8 | |
| Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); | |
| int sensorValue; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(11, OUTPUT); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> <title>Pure React Samples</title> </head> | |
| <body> | |
| <!-- Target Container --> | |
| <div id="react-container"></div> | |
| <!-- React, React DOM & Babel--> | |
| <script src="https://unpkg.com/react@15/dist/react.js"></script> |