Skip to content

Instantly share code, notes, and snippets.

@cyrus007
cyrus007 / Template_ESP8266.ino
Last active January 9, 2023 23:39 — forked from DeanCording/Template_ESP8266.ino
ESP8266 Arduino project template with optional OTA firmware update
/**
* ESP8266 project template with optional:
* - WiFi config portal - auto or manual trigger
* - OTA update - Arduino or web server
* - Deep sleep
* - Process timeout watchdog
*
* Copyright (c) 2016 Dean Cording <dean@cording.id.au>
* Modified by Swapan <swapan@yahoo.com>
*
@cyrus007
cyrus007 / main.cpp
Created October 5, 2017 21:28
ESP8266-12E based NTP display
#include <Arduino.h>
#include <stdint.h>
#include <TFTv2.h>
#include <SPI.h>
#include <NTPClient.h>
// change next line to use with another board/shield
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
const char *ssid = "<SSID>";
@cyrus007
cyrus007 / rc-driver.py
Last active October 6, 2017 19:21
Use uBit to control rctoy + rpi via BLE
"""
© 2017 swapan@yahoo.com
Module rpidriver.py - rpi library to handle dc motor
driven rc car using uBit controller
The program reads the Accelerometer:x,y,z values
coming from uBit via BLE and control motor using it
"""
import sys
import time
@cyrus007
cyrus007 / relay.py
Last active June 4, 2019 17:15
Relay uBit data via BLE to RPi connected to rctoy
"""
© 2017 swapan@yahoo.com
This program reads the Accelerometer:x,y,z values
coming from uBit via BLE and sends it to the network
"""
import signal
import socket
import sys
import time
@cyrus007
cyrus007 / 89-chronos.html
Created June 16, 2015 07:55
Node-Red module to use ezChronos in INPUT pallette
<!-- Swapan Sarkar <swapan@yahoo.com> -->
<script type="text/x-red" data-template-name="chronos">
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tasks"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
<br/>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
@cyrus007
cyrus007 / README.md
Last active August 29, 2015 14:23
Nodejs module to read from ez430-chronos USB dongle

ez430

EZ430-Chronos on node.js

  • used by Chronos node-red module
@cyrus007
cyrus007 / Garage.py
Created June 15, 2015 07:38
Jasper module to control garagedoor via MQTT
# -*- coding: utf-8-*-
import logging
import re
import paho.mqtt.publish as publish
import paho.mqtt.client as mqtt
WORDS = ["GARAGE", "OPEN", "CLOSE", "STATUS"]
PRIORITY = 4