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
use rust_gpiozero::*; | |
use std::thread::sleep; | |
use std::time::Duration; | |
fn main() { | |
println!("Hello, world!"); | |
let led = LED::new(18); | |
loop{ |
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
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 |
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
//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" |
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 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. |