This file contains 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
/* | |
ESP8266 Blink by Andrew Stuntz | |
The LED is connected to GPIO pin 5 in this case. | |
Written for the ESP8266 ESP-07 version of this board. | |
*/ | |
void setup() { | |
pinMode(5, OUTPUT); // Initialize the LED_BUILTIN pin as an output | |
Serial.begin(115200); |
This file contains 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
/* | |
ADXL335 | |
Reads an Analog Devices ADXL335 accelerometer and communicates the | |
acceleration to the computer. | |
Designed for the ADXL335 available at Tayda Electronics at | |
http://www.taydaelectronics.com/breakout-boards/adxl335-3-axis-accelerometer.html |
This file contains 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
/* | |
L9110S_Motor_Driver_Example - Arduino sketch | |
Thank you Banana Robotics for the Bulk of this code. | |
Connections: | |
Arduino digital output D10 to motor driver input B-IA. | |
Arduino digital output D11 to motor driver input B-IB. | |
Motor driver VCC to operating voltage 5V. |
This file contains 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 <SoftwareSerial.h> | |
SoftwareSerial BT(10, 11); | |
// creates a "virtual" serial port/UART | |
// connect BT module TX to D10 | |
// connect BT module RX to D11 | |
// connect BT Vcc to 5V, GND to GND | |
void setup() | |
{ | |
// set digital pin to control as an output | |
pinMode(13, OUTPUT); |
This file contains 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
/* | |
* 8x8 LED array test1 | |
* display a line of lights moving around the perimeter of the 8x8 matrix | |
*/ | |
// Arduino pin definitions - (ordered to keep wiring tidy) | |
int row[] = {14,10,4,12,9,5,8,6}; //rows - driven LOW for on | |
int col[] = {17,16,13,2,15,3,7,11}; //columns - driven HIGH for on | |
// give our moving light a tail? |
This file contains 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
/* | |
This Arduino code for "4-digit-7-segment-led-display" (KYX-5461AS). | |
* This code can display one Number in all 4 digit! | |
* This code can display 4 Numbers each on in specific digit | |
* This code can also make a Number Countdown (Timers). | |
author : Oussama Amri (@amriunix) | |
website : ithepro.com | |
*/ | |
//display pins |
This file contains 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
/* | |
* 8x8 LED array test1 | |
* display a line of lights moving around the perimeter of the 8x8 matrix | |
*/ | |
// Arduino pin definitions - (ordered to keep wiring tidy) | |
int row[] = {14,10,4,12,9,5,8,6}; //rows - driven HIGH for on | |
int col[] = {17,16,13,2,15,3,7,11}; //columns - driven LOW for on | |
This file contains 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
/* modified by Andrew Stuntz 8/12/2016 | |
Thank you arduinoesp.com for the example starter code */ | |
#include <ESP8266WiFi.h> | |
const char* ssid = "your-ssid"; | |
const char* password = "your-password"; | |
int ledPin = 5; // GPIO5 | |
WiFiServer server(80); |
This file contains 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
#define data 2 | |
#define clock 3 | |
// use binary notation to discribe our number layouts | |
byte zero = B01111110; | |
byte one = B00000110; | |
byte two = B11011010; | |
byte three = B11010110; | |
byte four = B10100110; | |
byte five = B11110100; |
This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
OlderNewer