Skip to content

Instantly share code, notes, and snippets.

View Xplorer001's full-sized avatar

Sandeep Patil Xplorer001

  • ExploreEmbedded
  • Bangalore, India
View GitHub Profile
#include<avr/io.h>
#include<avr/interrupt.h>
#include<util/delay.h>
#include "lcd.h"
volatile int cnt_zero,cnt_one;
ISR (INT0_vect) //External interrupt_zero ISR
{
cnt_zero++;
}
ISR (INT1_vect) //External interrupt_one ISR
/*
Sketch: GPRS HTTP Test
*/
#include <gprs.h>
#include <SoftwareSerial.h>
char http_cmd[] = "GET exploreembedded.com/wiki/images/1/15/Hello.txt HTTP/1.0\r\n\r\n";
char buffer[512];
/*
|
| For tutorial visit:
| http://exploreembedded.com/wiki/index.php?title=Interactive_Menus_for_your_project_with_a_Display_and_an_Encoder
|
*/
#include <SPI.h>
#include <Adafruit_GFX.h>
/*
| Example part of AVR Tutorial Series @ Explore Embedded
| To read the detailed tutorial visit:
| http://exploreembedded.com/wiki/5.AVR_Timer_programming
*/
#include<avr/io.h>
#include <util/delay.h>
#define LED PD4
int main()
{
@Xplorer001
Xplorer001 / ExploreDistanceMeter.ino
Created October 19, 2015 04:16
Code for Explore Distance Meter
/*
A set of custom made large numbers for a 16x2 LCD using the
LiquidCrystal librabry. Works with displays compatible with the
Hitachi HD44780 driver.
The Cuicuit:
LCD RS pin to D12
LCD Enable pin to D11
LCD D4 pin to D5
LCD D5 pin to D4
/*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#include "ESP8266WiFi.h"
void setup() {
Serial.begin(115200);
/*******Interrupt-based Rotary Encoder Sketch*******
by Simon Merrett, based on insight from Oleg Mazurov, Nick Gammon, rt, Steve Spence
modified at EE to include the select switch
Tutorial at:
http://exploreembedded.com/wiki/Interactive_Menus_for_your_project_with_a_Display_and_an_Encoder
*/
static int pinA = 2; // Our first hardware interrupt pin is digital pin 2
static int pinB = 3; // Our second hardware interrupt pin is digital pin 3
/*
* Indoor Air Quality v0.1
*
* Demo sketch to log Indoor Air Quality to thingspeak.com
*
* Temperature, humidity, TVOC and C02 are measured and logged.
* The data is also printed on the terminal and displayed on OLED
*
* More details visit:
*
/*
* For detailed tutorial on building the project visit:
* https://exploreembedded.com/wiki/Building_a_Frivolous_Internet_Connected_Display_with_ESP32
* Install the libraries listed in the tutorial before compiling the code.
* Reference links:
https://exploreembedded.com/wiki/Secure_IOT_with_AWS_and_Hornbill_ESP32
#include <SPI.h>
#include <SD.h>
#include <SparkFunDS1307RTC.h>
#include <Wire.h>
#include "max6675.h"
int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;
const int chipSelect = 4;