Skip to content

Instantly share code, notes, and snippets.

View dvxlab's full-sized avatar

dvxlab

View GitHub Profile
@dvxlab
dvxlab / pwm.ino
Created May 30, 2020 16:56
Arduino PWM Experiment Code.
/*
* DVXLab
*
* Tools -> Serial Monitor -> Setting - No line ENding
*
*/
#define LED_BUILTIN 3
// the setup function runs once when you press reset or power the board
void setup() {
@dvxlab
dvxlab / ESP32_SDCard
Created August 4, 2020 16:16
ESP32 Arduino SD Card File Read Write TTGO T8
/*
* SD Card Access
*
* platformio.ini
[env:esp wrover kit]
platform = espressif32
framework = arduino
board = esp-wrover-kit
monitor_speed = 115200
@dvxlab
dvxlab / ESP32_DeepSleep.c
Created August 28, 2020 18:25
ESP32 Battery Powering and Deep Sleep Power Check
/*
* Low Power
* TTGO T8 LED_BUILTIN=21
*/
#include <Arduino.h>
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */
#define TIME_TO_SLEEP 10 /* Time ESP32 will go to sleep (in seconds) */
@dvxlab
dvxlab / blink.c
Created September 19, 2020 14:16
Atmel AVR blink code works on platformio & other IDE
@dvxlab
dvxlab / blink.ino
Created January 26, 2021 15:36
Arduino lgt8f328p Source Code
@dvxlab
dvxlab / main.cpp
Created November 8, 2022 19:18
Simple ESP 8266 Plant watering System
/*------------------------------------------------------------------------------
Copyright @ DVXLAB , All rights reserved
Distributed under MIT License
------------------------------------------------------------------------------*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <FS.h>
//#include <WebSocketsServer.h>