Skip to content

Instantly share code, notes, and snippets.

View xxlukas42's full-sized avatar

xxlukas42

View GitHub Profile
@xxlukas42
xxlukas42 / bme680_air_quality.ino
Last active February 6, 2022 17:31
BME680 (GY-MCU680V1) Air quality measurement
//GY_MCU680 air quality sensor
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 0 // GPIO0
Adafruit_SSD1306 display(OLED_RESET);
@xxlukas42
xxlukas42 / eepromr_test.ino
Created May 6, 2019 21:02
ESP8266 and ESP32 flash memory
#include <EEPROM_Rotate.h>
EEPROM_Rotate EEPROMr;
#define DATA_OFFSET 10
void setup() {
Serial.begin(115200);
delay(2000);
EEPROMr.size(4);
EEPROMr.begin(4096);
@xxlukas42
xxlukas42 / blue_led_matrix.ino
Created May 15, 2019 18:42
Blue LED matrix display 8x16 for your Arduino
/**
* \par Copyright (C), 2012-2016, MakeBlock
* @file Me_LEDMatrixTest.ino
* @author MakeBlock (modified by Petr Lukas)
* @version V1.0.0
* @date 2019/05/12
* @brief Description: this file is sample code for Me LED Matrix device.
*
* Function List:
* clearScreen() Remove content of display
@xxlukas42
xxlukas42 / lora_demo.ino
Created June 12, 2019 19:58
Test script based on LMIC example tested with BSFrance Lora32u4 II v1.2, don't forget to change EUIs
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
* This example sends a valid LoRaWAN packet with payload "Hello,
#include <Adafruit_NeoPixel.h>
#define PIN 38
#define NUMPIXELS 1
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
Serial.begin(115200);
pixels.begin();