<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://old.hacdc.org/index.php?action=history&amp;feed=atom&amp;title=Avr2011_LED_Demo.c</id>
	<title>Avr2011 LED Demo.c - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://old.hacdc.org/index.php?action=history&amp;feed=atom&amp;title=Avr2011_LED_Demo.c"/>
	<link rel="alternate" type="text/html" href="https://old.hacdc.org/index.php?title=Avr2011_LED_Demo.c&amp;action=history"/>
	<updated>2026-05-09T11:40:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://old.hacdc.org/index.php?title=Avr2011_LED_Demo.c&amp;diff=4475&amp;oldid=prev</id>
		<title>Williamgibb at 05:14, 2 March 2011</title>
		<link rel="alternate" type="text/html" href="https://old.hacdc.org/index.php?title=Avr2011_LED_Demo.c&amp;diff=4475&amp;oldid=prev"/>
		<updated>2011-03-02T05:14:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:14, 2 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Microcontrollers]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key hacdc_wiki:diff::1.12:old-4452:rev-4475 --&gt;
&lt;/table&gt;</summary>
		<author><name>Williamgibb</name></author>
	</entry>
	<entry>
		<id>https://old.hacdc.org/index.php?title=Avr2011_LED_Demo.c&amp;diff=4452&amp;oldid=prev</id>
		<title>Hexagon5un: Created page with &quot;Cut and paste the following into a file called LED_Demo.c  &lt;pre&gt; /* Blinker Demo */  #include &lt;avr/io.h&gt;		/* Defines pins, ports, etc */ #define F_CPU 8000000UL	        /* Sets u...&quot;</title>
		<link rel="alternate" type="text/html" href="https://old.hacdc.org/index.php?title=Avr2011_LED_Demo.c&amp;diff=4452&amp;oldid=prev"/>
		<updated>2011-03-01T04:34:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Cut and paste the following into a file called LED_Demo.c  &amp;lt;pre&amp;gt; &lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Blinker Demo: &lt;/span&gt;  #include &amp;lt;avr/io.h&amp;gt;		&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Defines pins, ports, etc: &lt;/span&gt; #define F_CPU 8000000UL	        /* Sets u...&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cut and paste the following into a file called LED_Demo.c&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/* Blinker Demo */&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;avr/io.h&amp;gt;		/* Defines pins, ports, etc */&lt;br /&gt;
#define F_CPU 8000000UL	        /* Sets up the chip speed for delay.h */&lt;br /&gt;
#include &amp;lt;util/delay.h&amp;gt;		/* Functions to waste time */&lt;br /&gt;
&lt;br /&gt;
#define LED  PB0		/* Defines pin PB0 for the LED.  I&lt;br /&gt;
				 often include a bunch of the circuit&lt;br /&gt;
				 info in the code this way, which&lt;br /&gt;
				 makes porting the code to another&lt;br /&gt;
				 chip easier and reminds you of how to&lt;br /&gt;
				 hook it up. */&lt;br /&gt;
&lt;br /&gt;
void main(void){&lt;br /&gt;
&lt;br /&gt;
  DDRB = _BV(LED);		      /* Data Direction Register B:&lt;br /&gt;
				       writing a one to the bit&lt;br /&gt;
				       enables output.  More on the&lt;br /&gt;
				       _BV() macro in the next&lt;br /&gt;
				       lesson. */&lt;br /&gt;
	&lt;br /&gt;
  while(1){			/* the main loop, from which we never return */&lt;br /&gt;
&lt;br /&gt;
    PORTB = _BV(LED); 		/* Turn on the LED bit/pin in PORTB */&lt;br /&gt;
    _delay_ms(400);		/* wait */&lt;br /&gt;
&lt;br /&gt;
    PORTB = 0;		       /* Turn off everything(!) on PORTB */&lt;br /&gt;
   _delay_ms(400);		/* wait */&lt;br /&gt;
&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hexagon5un</name></author>
	</entry>
</feed>