<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=4935" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2009-12-07T22:30:25+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=4935</id>
<entry>
<author><name><![CDATA[ben2008]]></name></author>
<updated>2009-12-07T22:30:25+01:00</updated>
<published>2009-12-07T22:30:25+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4935&amp;p=23606#p23606</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4935&amp;p=23606#p23606"/>
<title type="html"><![CDATA[CM5 turn LED on ??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4935&amp;p=23606#p23606"><![CDATA[
Hi and sorry, <br />this question is very common i guess, but i did not find an answer in at least 2h. <br /><br />how can i turn an LED on the CM5 (atmega128) on? <br /><br />I already programmed a lot with AVR and C and get my robo to do funny things ... i also got an time interrupt .. but ... i dont get that leds to blink ... <br /><br />i tried something like this <br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>DDRE = 0;              //set port E to input direction <br />PORTE |= _BV&#40;PE4&#41;;    //enable pull-up resistor 4 <br />EIMSK |= _BV&#40;INT4&#41;;   //enable interrupt 4 <br /><br />PORTD = PIND ^ &#40; 1 &lt;&lt; PD7 &#41;;<br />   <br />PORTC &amp;= ~_BV&#40;PC3&#41;;  //turns AUX-LED on <br />PORTC &amp;= ~_BV&#40;PC4&#41;;  //turns AUX-LED on <br />PORTC &amp;= ~_BV&#40;PC5&#41;;  //turns AUX-LED on <br />PORTC &amp;= ~_BV&#40;PC6&#41;;  //turns AUX-LED on <br /></code></dd></dl><br /><br />I dont know exactly what i am doing by editing PORTC oder DDRE but i only want to get that led on (any led on the cm5)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1820">ben2008</a> — Mon Dec 07, 2009 10:30 pm</p><hr />
]]></content>
</entry>
</feed>