Skip to content

Instantly share code, notes, and snippets.

Avatar

xxlukas42

View GitHub Profile
@xxlukas42
xxlukas42 / IRSend_example.ino
Created Sep 7, 2017
Arduino example of microphone dependent IR signal send for Samsung TV
View IRSend_example.ino
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <boarddefs.h>
#include <IRremote.h>
@xxlukas42
xxlukas42 / boards.txt
Last active Nov 26, 2017
This board list includes Wemos D1 Mini Lite - copy it to C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0
View boards.txt
d1_mini_lite.name=WEMOS D1 mini Lite
d1_mini_lite.upload.tool=esptool
d1_mini_lite.upload.speed=921600
d1_mini_lite.upload.resetmethod=nodemcu
d1_mini_lite.upload.maximum_size=434160
d1_mini_lite.upload.maximum_data_size=81920
d1_mini_lite.upload.wait_for_upload_port=true
d1_mini_lite.serial.disableDTR=true
d1_mini_lite.serial.disableRTS=true
View APDS9960.ino
/***************************************************************************
This is a library for the APDS9960 digital proximity, ambient light, RGB, and gesture sensor
This sketch puts the sensor in gesture mode and decodes gestures.
To use this, first put your hand close to the sensor to enable gesture mode.
Then move your hand about 6" from the sensor in the up -> down, down -> up,
left -> right, or right -> left direction.
Designed specifically to work with the Adafruit APDS9960 breakout
----> http://www.adafruit.com/products/3595
@xxlukas42
xxlukas42 / ambient_led.ino
Created Sep 15, 2018
Ambient light shield and LED shield for D1 Pro Mini
View ambient_led.ino
/*************************************************************
Wemos Lolin D1 PRO (ESP8266)
Basic demo
by Petr Lukas
*************************************************************/
// Install Adafruit_NeoPixel library https://github.com/adafruit/Adafruit_NeoPixel first
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
@xxlukas42
xxlukas42 / dht12.ino
Created Sep 15, 2018
DHT12 shield for D1 mini Pro
View dht12.ino
// Install https://github.com/wemos/WEMOS_DHT12_Arduino_Library first
#include <WEMOS_DHT12.h>
DHT12 dht12;
void setup() {
Serial.begin(115200);
}
@xxlukas42
xxlukas42 / Buzzer_Shield.ino
Last active Dec 24, 2019
Wemos D1 Shields examples
View Buzzer_Shield.ino
/*
Wemos D1 mini/D1 lite
Buzzer Shield example
by Petr Lukas
Simple music, sound efects and cricket chirp sounds
*/
int buzzer=D5; //Buzzer control port, default D5
View wemos_chirp.ino
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <SFE_MicroOLED.h>
#define PIN_RESET 255 //
#define DC_JUMPER 0 // I2C Addres: 0 - 0x3C, 1 - 0x3D
MicroOLED oled(PIN_RESET, DC_JUMPER);
View _lolin_d32_ntp_simple.ino
/*************************************************************
Wemos Lolin D32 PRO (ESP32) NTP
Basic demo
by Petr Lukas
*************************************************************/
/*
Based on script
by Michael Margolis
modified 9 Apr 2012
by Tom Igoe
@xxlukas42
xxlukas42 / lolin_d32_pro.ino
Last active Apr 10, 2021
Basic demo for Wemos Lolin D32 PRO (ESP32) with build-in SD card reader, TFT display shield and SHT30 sensor
View lolin_d32_pro.ino
/*************************************************************
Wemos Lolin D32 PRO (ESP32)
Basic demo
by Petr Lukas
*************************************************************/
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <WEMOS_SHT3X.h> // SHT30 library
#include <SPI.h>
#include <SD.h> // SD card library
@xxlukas42
xxlukas42 / VEML6070.ino
Created Jul 2, 2017
Sketch for VEML6070 for Wemos D1 Pro mini with OLED shield (using Adafruit library https://github.com/adafruit/Adafruit_VEML6070)
View VEML6070.ino
#include <SPI.h>
#include <Wire.h>
#include <SFE_MicroOLED.h>
#include "Adafruit_VEML6070.h"
#define PIN_RESET 255 //
#define DC_JUMPER 0 // I2C Addres: 0 - 0x3C, 1 - 0x3D
MicroOLED oled(PIN_RESET, DC_JUMPER); // Example I2C declaration
Adafruit_VEML6070 uv = Adafruit_VEML6070();