Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Me No Dev me-no-dev

🎯
Focusing
Block or report user

Report or block me-no-dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AsyncWebCamera.cpp
#include "Arduino.h"
#include "esp_camera.h"
#include "ESPAsyncWebServer.h"
typedef struct {
camera_fb_t * fb;
size_t index;
} camera_frame_t;
#define PART_BOUNDARY "123456789000000000000987654321"
@me-no-dev
me-no-dev / IP5306.ino
Last active Jan 28, 2020
Sketch with IP5306 integration
View IP5306.ino
#include "Arduino.h"
#include "Wire.h"
/*
** IP5306 Power Module
*/
/* M5 Defaults
KeyOff: Enabled
BoostOutput: Disabled
View AsyncEchoServer.ino
#include <WiFi.h>
#include <AsyncTCP.h>
const char* ssid = "your-ssid";
const char* password = "your-pass";
AsyncServer server(23);
typedef struct {
View ESP32_WPA2.ino
#include "WiFi.h"
#include "esp_wpa2.h"
#include "esp_wifi.h"
const char * ca_pem = "-----BEGIN CERTIFICATE-----\n"
"MIID3DCCA0WgAwIBAgIJANe5ZSCKoB8fMA0GCSqGSIb3DQEBCwUAMIGTMQswCQYD\n"
"VQQGEwJGUjEPMA0GA1UECAwGUmFkaXVzMRIwEAYDVQQHDAlTb21ld2hlcmUxFTAT\n"
"BgNVBAoMDEV4YW1wbGUgSW5jLjEgMB4GCSqGSIb3DQEJARYRYWRtaW5AZXhhbXBs\n"
"ZS5jb20xJjAkBgNVBAMMHUV4YW1wbGUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4X\n"
"DTE2MTEyMzAyNTUwN1oXDTE3MDEyMjAyNTUwN1owgZMxCzAJBgNVBAYTAkZSMQ8w\n"
View AsyncSDBrowser.ino
#include <ESPAsyncWebServer.h>
#include "SPI.h"
#include "SD.h"
bool SD_exists(String path){
bool exists = false;
sd::File test = SD.open(path);
if(test){
test.close();
View Adafruit_ILI9341_Test.ino
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#ifdef ESP32
#define ILI_CS 22
#define ILI_DC 21
#define ILI_RST 18
#define ILI_SCLK 19
#define ILI_MOSI 23
View BLE_GATT_Client.ino
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
View filetoarray.c
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]){
FILE * fp;
char *buffer;
long flen;
char *fname;
View AsyncFSBrowser.cpp
//File: edit.htm.gz, Size: 4924
#define edit_htm_gz_len 4924
const uint8_t edit_htm_gz[] PROGMEM = {
0x1F, 0x8B, 0x08, 0x08, 0xEC, 0x73, 0xBF, 0x57, 0x00, 0x03, 0x65, 0x64, 0x69, 0x74, 0x2E, 0x68,
0x74, 0x6D, 0x00, 0xC5, 0x1B, 0xE9, 0x7A, 0xD3, 0x48, 0xF2, 0x7F, 0x9E, 0xA2, 0x47, 0xEC, 0x10,
0x79, 0x7C, 0xE6, 0x20, 0x03, 0x4E, 0x02, 0x63, 0x3B, 0x81, 0x04, 0x72, 0x11, 0xDB, 0x30, 0x81,
0x65, 0xE7, 0x93, 0xA5, 0xB6, 0xAD, 0x44, 0x96, 0x84, 0x24, 0xC7, 0x0E, 0x6C, 0xDE, 0x7D, 0xAB,
0xFA, 0x52, 0x4B, 0x96, 0x4D, 0x80, 0xD9, 0x5D, 0x42, 0x62, 0xA9, 0xBB, 0xAA, 0xBA, 0xBA, 0xEE,
0x3E, 0xBC, 0xF7, 0xCB, 0xC1, 0x79, 0xA7, 0x77, 0x75, 0x71, 0x48, 0xC6, 0xC9, 0xC4, 0x7B, 0xBE,
View ESP8266_Time.ino
#include <ESP8266WiFi.h>
#include <time.h>
const char * ssid = "********";
const char * password = "********";
#define getCompileTime() _getCompileTime(__DATE__, __TIME__)
struct tm * _getCompileTime(const char * compile_date, const char * compile_time){
const char * months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
You can’t perform that action at this time.