Skip to content

Instantly share code, notes, and snippets.

View mpsparrow's full-sized avatar

Matthew Sparrow mpsparrow

View GitHub Profile
@mpsparrow
mpsparrow / bot.py
Created April 18, 2020 00:53
Starter Discord bot using discordpy
'''
Bot Name:
Creator:
Version:
Date Updated:
Date Created:
'''
import discord
from discord.ext import commands
@mpsparrow
mpsparrow / mysql-temp.ino
Created March 22, 2020 04:45
Logs DHT11 temperature data in a mySQL database on an ESP8266
/*
Created by Matthew S on March 22, 2020
Simple script to log DHT11 sensor data into a mySQL database.
This is done by directly connecting to the database.
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <WiFiClient.h>
#include <MySQL_Connection.h>