This is the general instructions for how to get a pebble watch to talk to an ESP8266 and turn NeoPixels different colours.
Video: https://www.youtube.com/watch?v=BeIQ47WBVXs
- Pebble watch
- ESP8266 ESP-01
<?php | |
//========================================================================= | |
// Skripta za posiljanje sms preko Simobilove Klape / Najdi.si / Tusmobil | |
// Verzija 2.50 (c) blackbfm @ slo-tech | |
//========================================================================= | |
// Pošiljanje: | |
// SendFreeSms("ponudnik", "uporabniskoime", "geslo", "stevilka", "sporocilo") | |
// | |
// Preverjanje stanja: | |
// SendFreeSms("ponudnik", "uporabniskoime", "geslo", "stevilka", "sporocilo", False) |
/* | |
Example: Control a WTV020-SD-16P module to play voices from an Arduino board. | |
Created by Diego J. Arevalo, August 6th, 2012. | |
Released into the public domain. | |
*/ | |
#include <Wtv020sd16p.h> | |
int resetPin = 2; // The pin number of the reset pin. | |
int clockPin = 3; // The pin number of the clock pin. |
// WWW.BUILDCIRCUIT.COM// | |
//SELECTOR BTN = pin 6 | |
//TRIGGER = pin 7 | |
//RESET = PIN 2 | |
//CLOCK = PIN 3 | |
//DATA = PIN 4 | |
//BUSY = PIN 5 | |
#include <Wtv020sd16p.h> | |
int resetPin = 2; // The pin number of the reset pin. |
import requests | |
class Mobitel_SMS: | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
def _send_request(self, action, body): | |
envelope = """<?xml version="1.0" encoding="utf-8"?> |
This is the general instructions for how to get a pebble watch to talk to an ESP8266 and turn NeoPixels different colours.
Video: https://www.youtube.com/watch?v=BeIQ47WBVXs
Cubietruck is also known as Cubieboard 3
Note: This file documents just what I did, first of all as a note for myself. So this is not primarily intended as a tutorial. Because it still might be helpfull, I uploaded it. The GPIO function is now confirmed to work, tested with my multimeter, but I am still waiting for my jumper cables to arrive, so I can use them securely.
Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.
import xml.etree.ElementTree as ET | |
import StringIO | |
from najdisi_sms import SMSSender | |
import requests | |
sms = SMSSender('brodul', 'nom') | |
file_obj = StringIO.StringIO( | |
requests.get(( |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D8 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800); |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D8 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800); |
// ESP8266 with 20x4 i2c LCD | |
// Compatible with the Arduino IDE 1.6.4 | |
// Library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | |
// Bavensky :3 | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> |