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 / 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
@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