Skip to content

Instantly share code, notes, and snippets.

@JMishou
JMishou / AsyncWebUpdate.ino
Created December 30, 2017 05:11
ESPAsyncWebServer webupdate
/*
__/\\\\____________/\\\\__/\\\\\\\\\\\_____/\\\\\\\\\\\____/\\\________/\\\_
_\/\\\\\\________/\\\\\\_\/////\\\///____/\\\/////////\\\_\/\\\_______\/\\\_
_\/\\\//\\\____/\\\//\\\_____\/\\\______\//\\\______\///__\/\\\_______\/\\\_
_\/\\\\///\\\/\\\/_\/\\\_____\/\\\_______\////\\\_________\/\\\\\\\\\\\\\\\_
_\/\\\__\///\\\/___\/\\\_____\/\\\__________\////\\\______\/\\\/////////\\\_
_\/\\\____\///_____\/\\\_____\/\\\_____________\////\\\___\/\\\_______\/\\\_
_\/\\\_____________\/\\\_____\/\\\______/\\\______\//\\\__\/\\\_______\/\\\_
_\/\\\_____________\/\\\__/\\\\\\\\\\\_\///\\\\\\\\\\\/___\/\\\_______\/\\\_
_\///______________\///__\///////////____\///////////_____\///________\///__
// Timer and Counter example
// Original Code @ http://www.gammon.com.au/timers
// Edited by Jason Mishou
// Input: Pin D5
// This program uses Timer 1 to count input events on D5
// and the output compare of timer 1 to trigger an interrupt
// original code is a little more accurate but monopolizes both timer 1 and timer 2.
// these are checked for in the main program