Skip to content

Instantly share code, notes, and snippets.

View Bardoctorus's full-sized avatar
🌂

Ian Buckley Bardoctorus

🌂
View GitHub Profile
use rust_gpiozero::*;
use std::thread::sleep;
use std::time::Duration;
fn main() {
println!("Hello, world!");
let led = LED::new(18);
loop{
Sub send_email()
Dim CDO_Config As Object
Dim SMTP_Config As Variant
Dim strSubject As String
Dim strFrom As String
Dim strTo As String
Dim strCc As String
Dim strBcc As String
Dim strBody As String
@Bardoctorus
Bardoctorus / gist:9abf8cc8c7d61251b4c377e9ddeb10a4
Created August 17, 2018 12:52
Code for the www.MakeUseOf.com Wi-Fi connected Button tutorial by Ian Buckley
//Code for the www.MakeUseOf.com Wi-Fi connected Button tutorial by Ian Buckley
#include <IFTTTWebhook.h>
#include <ESP8266WiFi.h>
#define ledPin 5
#define wakePin 16
#define ssid "YOUR SSID HERE"
#define password "YOUR WIFI PASSWORD HERE"
#define IFTTT_API_KEY "IFTTT_KEY_GOES_HERE"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "FastLED.h"
//---FastLED definitions and CRGB---
#define LED_PIN 3 // GPIO pin for RGB LEDs.
#define NUM_LEDS 44 // Number of LEDs connected.
#define BRIGHTNESS 64 // Default LED brightness.