Skip to content

Instantly share code, notes, and snippets.

View julioceaseless's full-sized avatar
🎯
Focusing

Machira Julius julioceaseless

🎯
Focusing
View GitHub Profile
@julioceaseless
julioceaseless / main.c
Last active September 20, 2015 00:20 — forked from holachek/main.c
modified main.c slightly
#define F_CPU 1000000 // CPU frequency for proper time calculation in delay function
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRD |= (1 << PD6); // make PD6 an output
for(;;)//infinite loop
@julioceaseless
julioceaseless / Makefile
Last active September 20, 2015 00:23 — forked from holachek/Makefile
AVR Tutorial Makefile for atmega16 using Arduino Uno
# Name: Makefile
# Author: <insert your name here>
# Copyright: <insert your copyright message here>
# License: <insert your license reference here>
# DEVICE ....... The AVR device you compile for
# CLOCK ........ Target AVR clock rate in Hertz
# OBJECTS ...... The object files created from your source files. This list is
# usually the same as the list of source files with suffix ".o".
# PROGRAMMER ... Options to avrdude which define the hardware you use for
#include <SoftwareSerial.h>
#include <stdlib.h>
#include <String.h>
#include <dht.h>
dht DHT;
#define DHT11_PIN 5
// thingspeak API key
#include <SoftwareSerial.h>
#include <stdlib.h>
#include <String.h>
String reset = "AT+RST";
String twitterAPIKey = "B2K5PVPQTRMP4563";
String tweetURI = "/apps/thingtweet/1/statuses/update";
String thingSpeak = "api.thingspeak.com";
String urlEncoded = "application/x-www-form-urlencoded";
String cmd;