<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>adafruit industries blog &#187; python</title>
	<atom:link href="http://www.adafruit.com/blog/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adafruit.com/blog</link>
	<description>electronics, open source hardware, hacking and more...</description>
	<lastBuildDate>Tue, 18 Jun 2013 06:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Raspberry Pi Chained Shift Registers #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2013/05/24/raspberry-pi-chained-shift-registers/</link>
		<comments>http://www.adafruit.com/blog/2013/05/24/raspberry-pi-chained-shift-registers/#comments</comments>
		<pubDate>Fri, 24 May 2013 05:00:43 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=64628</guid>
		<description><![CDATA[From Les Orchard&#8217;s flickr: I need to blog about this. This photo includes: * A Raspberry Pi with a T-Cobbler * Two 74HC595 shift registers * A 20&#215;4 LCD display with negative RGB backlight (currently hard-wired to purple) Put together, this is a Raspberry Pi running a Python script that uses 3 GPIO pins to [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/deusx/8747957195/in/pool-1884120@N23"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/05/8747957195_109b344ede_b-600x450.jpg" alt="8747957195_109b344ede_b" width="600" height="450" class="alignright size-large wp-image-64629" /></a></p>
<p>From <a href="http://www.flickr.com/photos/deusx/8747957195/in/pool-1884120@N23">Les Orchard&#8217;s flickr</a>:</p>
<blockquote><p>I need to blog about this. This photo includes:</p>
<p>* <a href="http://www.adafruit.com/products/998">A Raspberry Pi</a> with a <a href="http://www.adafruit.com/products/1105">T-Cobbler</a><br />
* <a href="http://www.protostack.com/blog/2010/05/introduction-to-74hc595-shift-register-controlling-16-leds/">Two 74HC595 shift registers</a><br />
* A <a href="http://www.adafruit.com/products/498">20&#215;4 LCD display with negative RGB backlight</a> (currently hard-wired to purple)</p>
<p>Put together, this is a Raspberry Pi running a Python script that uses 3 GPIO pins to control 16 outputs.</p>
<p>Driving the LCD itself is <a href="https://github.com/lmorchard/raspiriments/commit/0b15dbf95ba0d065f638086b4285c61dd00bb9ea">a dirty, dirty hack</a> that fools <a href="https://github.com/lmorchard/raspiriments/commit/ed67e620299f0a3e23ac63b23af1d82e6ebffdca">some code from Adafruit</a> into thinking it&#8217;s talking directly to GPIO pins, when really it&#8217;s talking to my shift registers.</p>
<p>It&#8217;s that last part which made me bounce in my chair &#8211; because I don&#8217;t quite yet understand how to talk to the LCD display, yet my hack worked the first time. (Albeit very, very slowly.) \o/</p>
<p>In the near future, I want to figure out how to control the red / blue / green backlight pins from the Raspberry Pi, in order to change colors on the display</p>
</blockquote>
<p><a href="http://www.flickr.com/photos/deusx/8747957195/in/pool-1884120@N23">Original post here</a>.</p>
<hr />
<h2>Featured Adafruit Products</h2>
<p><a href="http://www.adafruit.com/products/1105"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/05/ID1105_MED.jpg" alt="ID1105_MED" width="400" height="300" class="alignright size-full wp-image-64636" /></a></p>
<p><a href="http://www.adafruit.com/products/1105">Adafruit Pi T-Cobbler Breakout Kit for Raspberry Pi</a> &#8211; Now that you&#8217;ve finally got your hands on a <a href="http://www.raspberrypi.org/">Raspberry Pi®</a> , you&#8217;re probably itching to make some fun embedded computer projects with it. What you need is an add on prototyping Pi T-Cobbler from Adafruit, which can break out all those tasty power, GPIO, I2C and SPI pins from the 26 pin header onto a solderless breadboard. This mini kit will make &#8220;cobbling together&#8221; prototypes with the Pi super easy. Designed for Raspberry Pi Model B Revision 1 or Revision 2. (<a href="http://www.adafruit.com/products/1105">read more</a>)</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=64628</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Smarthomewatch: Hacking on Pebble Watch For Home Automation</title>
		<link>http://www.adafruit.com/blog/2013/04/30/smarthomewatch-hacking-on-pebble-watch-for-home-automation/</link>
		<comments>http://www.adafruit.com/blog/2013/04/30/smarthomewatch-hacking-on-pebble-watch-for-home-automation/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 05:00:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[clocks & watches]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=61820</guid>
		<description><![CDATA[Check out this home automation project for the Pebble watch from Enrico on makr.com: I really enjoyed my pebble (too bad caller ID is not working, yet), and i&#8217;m very happy to have been one the sponsors of the “rise of the smartwatch” series. pair this brand new gadget with my interests in home automation, [...]]]></description>
				<content:encoded><![CDATA[<p><iframe width="599" height="337" src="http://www.youtube.com/embed/G1TKKiCGTDs?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>Check out this home automation project for the <a href="http://getpebble.com">Pebble watch</a> from <a href="http://makr.co/blog/pebble-home-automation/">Enrico on makr.com</a>:</p>
<blockquote><p>I really enjoyed my pebble (too bad caller ID is not working, yet), and i&rsquo;m very happy to have been one the sponsors of the <a href="http://getpebble.com">“rise of the smartwatch” series</a>.</p>
<p>pair this brand new gadget with my interests in home automation, add the release of the pebble sdk, stir it with some juicy python examples, and there you are: a smarthomewatch!</p>
<p>first things first.</p>
<p>to start you need to have a working libpebble setup. i followed the pretty clear readme of <a href="https://github.com/Hexxeh/libpebble">this github homepage</a>.</p>
<p>i followed the advice of using the lightblue library as the wrapper around bluetooth stack: looks pretty outdated, but works even on my up-to-date mountain lion powerbook.</p>
<p>if this is your case, before trying to use the libpebble scripts, follow the instructions <a href="https://github.com/pebble/lightblue-0.4">you can find here</a>. (that&rsquo;s a fork adapted to run on macos 10.8)</p>
<p>as soon as i drilled down inside the clean code of the “p.py” file, i realized how easy it would have been to tweak it, and thought: how about that <a href="http://www.robot-electronics.co.uk/htm/eth_rly16tech.htm">ETH-RLY ethernet relay board i played with in python some weeks ago</a>?</p>
<p>let&rsquo;s glue them together … and the first smarthomewatch was born! to avoid having to set up a specific application i used the “music” menu, putting my relay list as if it was a playlist, using the play/pause button as a relay toggle.</p>
<p>the code i&rsquo;m posting is pretty draft, looking more like a hack of the original file, rather than a proper software module. but hey: <a href="https://github.com/makrco/smarthomewatch">it works</a>! &#8230;</p></blockquote>
<p><a href="http://makr.co/blog/pebble-home-automation/">Read more.</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=61820</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Led Dimming &amp; Motor Speed Control with Soft PWM in RPi.GPIO 0.5.2a #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2013/04/26/led-dimming-motor-speed-control-with-soft-pwm-in-rpi-gpio-0-5-2a/</link>
		<comments>http://www.adafruit.com/blog/2013/04/26/led-dimming-motor-speed-control-with-soft-pwm-in-rpi-gpio-0-5-2a/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 08:00:50 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=61377</guid>
		<description><![CDATA[How to drive leds and motors with PWM &#038; RPi.GPIO on the Raspberry Pi: In part 1 of this series, we looked at the basic commands for using software pulse-width modulation (PWM) in RPi.GPIO 0.5.2a and higher. In this article we&#8217;ll get a bit more hands-on and into some practical applications for it. It&#8217;s all [...]]]></description>
				<content:encoded><![CDATA[<p><iframe width="600" height="338" src="http://www.youtube.com/embed/AIwOMNa1bEM" frameborder="0" allowfullscreen></iframe></p>
<p><a href="http://raspi.tv/2013/how-to-use-soft-pwm-in-rpi-gpio-pt-2-led-dimming-and-motor-speed-control">How to drive leds and motors with PWM &#038; RPi.GPIO on the Raspberry Pi</a>:</p>
<blockquote><p>In part 1 of this series, we looked at the basic commands for using software pulse-width modulation (PWM) in RPi.GPIO 0.5.2a and higher. In this article we&rsquo;ll get a bit more hands-on and into some practical applications for it. It&rsquo;s all very well being able to make nice square-wave pulses on an oscilloscope, but what&rsquo;s it actually useful for?</p></blockquote>
<p><a href="http://raspi.tv/2013/how-to-use-soft-pwm-in-rpi-gpio-pt-2-led-dimming-and-motor-speed-control"> Source code and more here!</a></p>
<hr />
<a href="https://www.adafruit.com/products/998"><img src="http://www.adafruit.com/ThingsThatChange/freepi.jpeg" height="57" width="97" border="0" align="left" hspace="4" vspace="4" alt="998" /></a>Each Friday is PiDay here at Adafruit, be sure to check out our <a href="http://www.adafruit.com/blog/category/raspberry-pi/">posts,</a> <a href="http://learn.adafruit.com/category/raspberry-pi">tutorials</a> and new <a href="https://www.adafruit.com/raspberrypi">Raspberry Pi related products.</a> Have you tried the new <a href="http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro">&#8220;Adafruit Raspberry Pi Educational Linux Distro&#8221;</a>? It&#8217;s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there&#8217;s more! <a href="http://learn.adafruit.com/webide/">Try our new Raspberry Pi WebIDE!</a> The easiest way to learn programming on a Raspberry Pi.</p>
<p>We now have <a href="https://www.adafruit.com/products/998">Raspberry Pi Model B with 512MB RAM</a> in stock and shipping now!</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=61377</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Physical WakeOnLan button with Raspberry Pi and Python</title>
		<link>http://www.adafruit.com/blog/2013/03/29/physical-wakeonlan-button-with-raspberry-pi-and-python/</link>
		<comments>http://www.adafruit.com/blog/2013/03/29/physical-wakeonlan-button-with-raspberry-pi-and-python/#comments</comments>
		<pubDate>Fri, 29 Mar 2013 16:00:21 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=58716</guid>
		<description><![CDATA[Physical WakeOnLan button with Raspberry Pi and Python via Code Container &#8211; This is a fun little demo I threw together in an evening. I&#8217;m running Raspbian “wheezy”. Source code and more here!]]></description>
				<content:encoded><![CDATA[<p><a href="http://codecontainer.org/post/45748305927/physical-wakeonlan-button-with-raspberry-pi-and-python"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/03/H3z409S1.png" alt="" title="H3z409S" width="600" height="542" class="alignright size-full wp-image-58719" /></a></p>
<p><a href="http://codecontainer.org/post/45748305927/physical-wakeonlan-button-with-raspberry-pi-and-python">Physical WakeOnLan button with Raspberry Pi and Python</a> via <a href="http://codecontainer.org/">Code Container</a> &#8211; </p>
<blockquote><p>This is a fun little demo I threw together in an evening. I&rsquo;m running Raspbian “wheezy”.</p></blockquote>
<p><a href="http://codecontainer.org/post/45748305927/physical-wakeonlan-button-with-raspberry-pi-and-python">Source code and more here!</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=58716</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having fun with the Massive Arcade Button, Raspberry Pi and, Python</title>
		<link>http://www.adafruit.com/blog/2013/03/22/having-fun-with-the-massive-arcade-button-raspberry-pi-and-python/</link>
		<comments>http://www.adafruit.com/blog/2013/03/22/having-fun-with-the-massive-arcade-button-raspberry-pi-and-python/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 18:00:17 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=57395</guid>
		<description><![CDATA[The Massive Arcade Button makes it fun to collect data! Shared by Todd Dailey, @twid: Daughter&#8217;s science project 90% done, shout out to @raspberry_pi @adafruit and Python Read more. Featured Adafruit Products Massive Arcade Button with LED &#8211; 100mm Red &#8211; OMG WATCH OUT! This 100mm diameter arcade button is so massive and inviting it [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://instagram.com/p/W-9OdlwDZX/" rel="attachment wp-att-57396"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/03/80221a4a8f7b11e2aeb222000a1f9e7e_7-480x480.jpg" alt="" title="80221a4a8f7b11e2aeb222000a1f9e7e_7" width="480" height="480" class="alignright size-large wp-image-57396" /></a></p>
<p>The <a href="http://www.adafruit.com/products/1185">Massive Arcade Button</a> makes it fun to collect data! Shared by Todd Dailey, <a href="https://twitter.com/twid/status/313473450960379904" target="_blank">@twid</a>:</p>
<blockquote><p>Daughter&#8217;s science project 90% done, shout out to @raspberry_pi @adafruit and Python <img src='http://www.adafruit.com/adablog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p><a href="https://twitter.com/twid/status/313473450960379904">Read more.</a></p>
<p><a href="http://twitpic.com/cc9vf2" rel="attachment wp-att-57410"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/03/746210126-360x480.jpg" alt="" title="746210126" width="360" height="480" class="alignright size-large wp-image-57410" /></a></p>
<hr />
<p><h2>Featured Adafruit Products</h2>
<p><a href="http://www.adafruit.com/products/1185" rel="attachment wp-att-57535"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/03/index1.jpeg" alt="" title="index" width="400" height="308" class="alignright size-full wp-image-57535" /></a></p>
<p><a href="http://www.adafruit.com/products/1185">Massive Arcade Button with LED &#8211; 100mm Red</a> &#8211; OMG WATCH OUT! This 100mm diameter arcade button is so massive and inviting it may collapse upon itself and form a black hole from which not even light can escape! Until it does, however, it ready for all sorts of pressing and pushing. Science has shown no one can resist pressing its shiny surface and saying &#8220;beep!&#8221;. We&#8217;ve seen these on some games of skill in arcades, they&#8217;re easy to mount on nearly any kind of enclosure. They&#8217;re not waterproof or weatherproof, so best used indoors. (<a href="http://www.adafruit.com/products/1185">read more</a>)</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=57395</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use interrupts with Python on the Raspberry Pi and RPi.GPIO</title>
		<link>http://www.adafruit.com/blog/2013/03/22/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio/</link>
		<comments>http://www.adafruit.com/blog/2013/03/22/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 17:00:03 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=57385</guid>
		<description><![CDATA[How to use interrupts with Python on the Raspberry Pi and RPi.GPIO This is the first in a series of articles which aim to show you how to use this new interrupt facility in Python. Interrupts are a much more efficient way of handling the “wait for something to happen and react immediately when it [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio" rel="attachment wp-att-57386"><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/03/RasPi.TV-interrupt1_bb-580x480.jpg" alt="" title="RasPi.TV-interrupt1_bb" width="580" height="480" class="alignright size-large wp-image-57386" /></a></p>
<p><a href="http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio">How to use interrupts with Python on the Raspberry Pi and RPi.GPIO</a></p>
<blockquote><p>This is the first in a series of articles which aim to show you how to use this new interrupt facility in Python.</p>
<p>Interrupts are a much more efficient way of handling the “wait for something to happen and react immediately when it does” situation. They free up the resources you would have wasted on polling, so that you can use them for something else. Then, when the event happens, the rest of your program is “interrupted” and your chosen outcome occurs.</p></blockquote>
<p><a href="http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio">Source code and more here!</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=57385</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking the Minecraft world #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2013/03/08/hacking-the-minecraft-world-piday-raspberrypi-raspberry_pi/</link>
		<comments>http://www.adafruit.com/blog/2013/03/08/hacking-the-minecraft-world-piday-raspberrypi-raspberry_pi/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 19:05:32 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=56641</guid>
		<description><![CDATA[Liz shares about the exciting coding opportunities in Minecraft: Pi Edition! From RaspberryPi.org: If you&#8217;re a Minecraft fan and a Pi owner, you&#8217;ve probably already downloaded a copy of Minecraft: Pi Edition. But are you getting the most out of the fact that you can modify the world with code in-game? If you&#8217;re not sure [...]]]></description>
				<content:encoded><![CDATA[<p>Liz shares about the exciting coding opportunities in <a href="http://pi.minecraft.net/">Minecraft: Pi Edition</a>!</p>
<p>From <a href="http://www.raspberrypi.org/archives/3445">RaspberryPi.org</a>:
</p>
<blockquote><p>If you&#8217;re a Minecraft fan and a Pi owner, you&#8217;ve probably already downloaded a copy of <a href="http://pi.minecraft.net/" target="_blank">Minecraft: Pi Edition</a>. But are you getting the most out of the fact that you can modify the world with code in-game?</p>
<p>If you&#8217;re not sure where to start, or if you&#8217;re looking for ideas (sometimes being given a blank canvas can be lousy for getting the brain sparking), Martin O&#8217;Hanlon at the marvellous <a href="http://www.stuffaboutcode.com/" target="_blank">&lt;Stuff about=&#8221;code&#8221; /&gt;</a> has several tutorials on Minecraft: Pi Edition, from installing the game to using the Minecraft API to build wonderful things, like magical bridges that appear where&#8217;er you walk, games of hide and seek, and in-game analogue clocks.</p>
<p>The hide and seek hack is easy and rewarding: with a little coding you&#8217;ll be able to get the game to hide a diamond somewhere in the world for you to find, and to give you hints of the warmer/colder variety.</p>
<p><iframe src="http://www.youtube.com/embed/4fIJoVk2gDc" frameborder="0" width="600" height="480"></iframe></p>
<p>You can find <a href="http://www.stuffaboutcode.com/2013/01/raspberry-pi-minecraft-hide-and-seek.html" target="_blank">code and an explanation of what&#8217;s going on</a> over at Stuff About&#8230;</p>
<p>And we&#8217;re all agreed that the clock is just <em>brilliant</em> (it&#8217;s also big enough that you can go and stand on the hands). Again, the <a href="http://www.stuffaboutcode.com/2013/02/raspberry-pi-minecraft-analogue-clock.html?m=1" target="_blank">project has its own page</a> with code and a spot of discussion.</p>
<p><iframe src="http://www.youtube.com/embed/ey4QpoqZLLU" frameborder="0" width="600" height="480"></iframe></p>
<p>We&#8217;d love to see what you&#8217;ve been doing in Minecraft &#8211; take some video, or write something about your experiments on your own website, and let us know about it!</p>
</p>
</blockquote>
<p><a href="http://www.raspberrypi.org/archives/3445">Read more.</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=56641</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Python Library for Raspberry Pi and Adafruit Digital RGB LED Strips #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2013/03/01/raspberry-pi-and-led-strips-piday-raspberrypi-raspberry_pi/</link>
		<comments>http://www.adafruit.com/blog/2013/03/01/raspberry-pi-and-led-strips-piday-raspberrypi-raspberry_pi/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 08:00:57 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[leds-lcds]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=56015</guid>
		<description><![CDATA[Here&#8217;s a great new python library for the Adafruit Digital RGB LED Strips, shared by Julio Terra: Earlier today I published the first beta release of the LED Strip python library that we created at the LAB for the Raspberry Pi. This library was developed to be used with the Digital RGB LED strips from [...]]]></description>
				<content:encoded><![CDATA[<p><iframe width="600" height="338" src="http://www.youtube.com/embed/p4cY8n1BzwA?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>Here&#8217;s a great new python library for the <a href="http://www.adafruit.com/products/306">Adafruit Digital RGB LED Strips</a>, shared by <a href="http://julioterra.com/journal/2013/02/raspberry-pi-and-led-strips-new-python-library/">Julio Terra</a>:
</p>
<blockquote><p>Earlier today I published the <a href="https://github.com/labatrockwell/raspberrypi-experiments/tree/ledstrip_v0.0.2">first beta release of the LED Strip python library</a> that we created at the <a href="http://www.rockwellgroup.com/lab">LAB</a> for the Raspberry Pi. This library was developed to be used with the <a href="http://www.adafruit.com/products/306">Digital RGB LED strips from Adafruit</a> &#8211; our favorite LED strip.</p>
<p>We have been playing with these for quite a while using Arduinos, and Adafruit&#8217;s Arduino library. With that in mind, we structured out library similar to the Arduino library from Adafruit. To help you get up and running quickly, we put together <a href="https://github.com/labatrockwell/raspberrypi-experiments/tree/master/Led_Strip_Library/examples">two examples scripts</a> and a  <a href="https://github.com/labatrockwell/raspberrypi-experiments/blob/master/Led_Strip_Library/readme.md">readme file</a> featuring an initial draft of the documentation.</p>
<p>One of the reasons that we are so excited about using the LED strips with Raspberry Pis is that they play really nicely with <a href="http://docs.spacebrew.cc">Spacebrew</a> &#8211; the LAB&#8217;s dynamic routing tookit/service. This is especially true since <a href="https://github.com/phooky">Adam Mayer</a> developed an awesome python Spacebrew library at our meet-up in January.</p>
<p>Here is a link to the <a href="https://github.com/labatrockwell/spacebrew-python-examples">Spacebrew python library repo</a>. Make sure to go through the readme file because you&#8217;ll need to install several dependencies to get the Spacebrew library up and running on your device. I&#8217;ll post more information about this library sometime in the coming week or two.</p></blockquote>
<p><a href="http://julioterra.com/journal/2013/02/raspberry-pi-and-led-strips-new-python-library/">Read more.</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=56015</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SPI-Python: Hardware SPI for RasPi from Python #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2013/01/11/spi-python-hardware-spi-for-raspi-from-python-piday-raspberrypi-raspberry_pi/</link>
		<comments>http://www.adafruit.com/blog/2013/01/11/spi-python-hardware-spi-for-raspi-from-python-piday-raspberrypi-raspberry_pi/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 14:12:56 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=51729</guid>
		<description><![CDATA[Here&#8217;s a tutorial how to AVOID bit-banging and use the hardware via C (while still in Python), shared by Louis Thiery in the Adafruit Forums. And here is the code in Github. This implementation of SPI in Python is hardware based. Linux-level C code is compiled as a Python module. I first learned how to [...]]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2013/01/SPI-Python.png" alt="SPI-Python" title="SPI-Python.png" border="0" width="254" height="581" /></p>
<p>Here&#8217;s a tutorial how to AVOID bit-banging and use the hardware via C (while still in Python), shared by <a href="http://louisthiery.com/?p=248&#038;preview=true">Louis Thiery</a> in the <a href="http://forums.adafruit.com/viewtopic.php?f=8&#038;t=35823">Adafruit Forums</a>. And here is the <a href="https://github.com/lthiery/SPI-Py">code in Github</a>.
</p>
<blockquote><p>This implementation of SPI in Python is hardware based. Linux-level C code is compiled as a Python module. I first learned how to get SPI working on the Raspberry Pi with help from a tutorial by Brian Hensley. However, I love Python and I wanted to use this hardware implementation of SPI from within Python. I little searching told me that what I wanted to do was to “extend” Python with C and so this reference was very helpful.</p></blockquote>
<p><a href="http://louisthiery.com/?p=248&#038;preview=true">Read more.</a></p>
<hr />
<p><a href="https://www.adafruit.com/products/998"><img src="http://www.adafruit.com/ThingsThatChange/freepi.jpeg" height="57" width="97" border="0" align="left" hspace="4" vspace="4" alt="998" /></a>Each Friday is PiDay here at Adafruit, be sure to check out our <a href="http://www.adafruit.com/blog/category/raspberry-pi/">posts,</a> <a href="http://learn.adafruit.com/category/raspberry-pi">tutorials</a> and new <a href="https://www.adafruit.com/raspberrypi">Raspberry Pi related products.</a> Have you tried the new <a href="http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro">&#8220;Adafruit Raspberry Pi Educational Linux Distro&#8221;</a> ? It&#8217;s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there&#8217;s more! <a href="http://learn.adafruit.com/webide/">Try our new Raspberry Pi WebIDE!</a> The easiest way to learn programming on a Raspberry Pi.</p>
<p>Want a FREE RASPBERRY PI? <a href="http://www.adafruit.com/products/998">All orders over $350 get a FREE Raspberry Pi Model B with 512MB RAM!</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=51729</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>NEW BOOK &#8211; Python for Kids &#8211; A Playful Introduction to Programming</title>
		<link>http://www.adafruit.com/blog/2012/12/27/new-book-python-for-kids-a-playful-introduction-to-programming/</link>
		<comments>http://www.adafruit.com/blog/2012/12/27/new-book-python-for-kids-a-playful-introduction-to-programming/#comments</comments>
		<pubDate>Thu, 27 Dec 2012 23:10:51 +0000</pubDate>
		<dc:creator>adafruit</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=50615</guid>
		<description><![CDATA[NEW BOOK &#8211; Python for Kids &#8211; A Playful Introduction to Programming. Python is a powerful, expressive programming language that&#8217;s easy to learn and fun to use! But books about learning to program in Python can be kind of dull, gray, and boring, and that&#8217;s no fun for anyone. Featuring original artwork by Miran Lipovača. [...]]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2012/12/window-400.jpg" height="461" width="600" border="0" hspace="4" vspace="4" alt="Window-400" /></p>
<p><a href="http://www.adafruit.com/products/1161">NEW BOOK &#8211; Python for Kids &#8211; <em>A Playful Introduction to Programming</em>.</a> Python is a powerful, expressive programming language that&rsquo;s easy to learn and fun to use! But books about learning to program in Python can be kind of dull, gray, and boring, and that&rsquo;s no fun for anyone. Featuring original artwork by Miran Lipovača. Full color, over 344 pages.</p>
<p>Python for Kids brings Python to life and brings you (and your parents) into the world of programming. The ever-patient Jason R. Briggs will guide you through the basics as you experiment with unique (and often hilarious) example programs that feature ravenous monsters, secret agents, thieving ravens, and more. New terms are defined; code is colored, dissected, and explained; and quirky, full-color illustrations keep things on the lighter side.</p>
<p>Chapters end with programming puzzles designed to stretch your brain and strengthen your understanding. By the end of the book you&rsquo;ll have programmed two complete games: a clone of the famous Pong and “Mr. Stick Man Races for the Exit”—a platform game with jumps, animation, and much more.</p>
<p>As you strike out on your programming adventure, you&rsquo;ll learn how to:</p>
<ul>
<li>Use fundamental data structures like lists, tuples, and maps</li>
<li>Organize and reuse your code with functions and modules</li>
<li>Use control structures like loops and conditional statements</li>
<li>Draw shapes and patterns with Python&rsquo;s turtle module</li>
<li>Create games, animations, and other graphical wonders with tkinter</li>
</ul>
<p>Why should serious adults have all the fun? <em>Python for Kids</em> is your ticket into the amazing world of computer programming.</p>
<p><a href="http://www.adafruit.com/products/1161">In stock and shipping now!</a></p>
<p><span id="more-50615"></span></p>
<hr />
<p><strong>About the Author</strong><br />
Jason Briggs has been a programmer since the age of eight, when he first learned BASIC on a Radio Shack TRS-80. Since then he has written software professionally as a developer and systems architect and served as Contributing Editor for Java Developer&#8217;s Journal. His articles have appeared in JavaWorld, ONJava and ONLamp. Python for Kids is his first book.</p>
<p><strong>Python for Kids</strong><br />
<em>A Playful Introduction to Programming</em></p>
<p>Table of Contents<br />
About the Author and Technical Reviewers<br />
Acknowledgments<br />
Introduction</p>
<p>Part I: Learning to Program</p>
<p>Chapter 1: Not All Snakes Slither<br />
Chapter 2: Calculations and Variables<br />
Chapter 3: Strings, Lists, Tuples, and Maps<br />
Chapter 4: Drawing with Turtles<br />
Chapter 5: Asking Questions with if and else<br />
Chapter 6: Going Loopy<br />
Chapter 7: Recycling Your Code with Functions and Modules<br />
Chapter 8: How to Use Classes and Objects<br />
Chapter 9: Python&rsquo;s Built-In Functions<br />
Chapter 10: Useful Python Modules<br />
Chapter 11: More Turtle Graphics<br />
Chapter 12: Using tkinter for Better Graphics</p>
<p>Part II: Bounce!</p>
<p>Chapter 13: Beginning Your First Game: Bounce!<br />
Chapter 14: Finishing Your First Game: Bounce!</p>
<p>Part III: Mr. Stick Man Races for the Exit</p>
<p>Chapter 15: Creating Graphics for the Mr. Stick Man Game<br />
Chapter 16: Developing the Mr. Stick Man Game<br />
Chapter 17: Creating Mr. Stick Man<br />
Chapter 18: Completing the Mr. Stick Man Game</p>
<p>Afterword: Where to Go from Here<br />
Appendix: Python Keywords<br />
Glossary<br />
Index</p>
<p>View the Index (<a href="http://nostarch.com/download/samples/PFK_index.pdf">PDF</a>)<br />
View the detailed Table of Contents (<a href="http://nostarch.com/download/samples/PFK_dtoc.pdf">PDF</a>)</p>
<p>Download Chapter 4 &#8220;Drawing with Turtles&#8221; (<a href="http://nostarch.com/download/samples/PFK_ch4.pdf">PDF</a>)<br />
Download the sample code from the book (<a href="http://nostarch.com/download/PythonForKidsCode.zip">ZIP</a>)<br />
Download the solutions to programming puzzles (<a href="http://nostarch.com/download/PythonForKidsSolutions.pdf">PDF</a>)</p>
<p><a href="http://www.adafruit.com/products/1161">In stock and shipping now!</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=50615</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multiple Serial Devices in One Terminal</title>
		<link>http://www.adafruit.com/blog/2012/12/02/multiple-serial-devices-in-one-terminal/</link>
		<comments>http://www.adafruit.com/blog/2012/12/02/multiple-serial-devices-in-one-terminal/#comments</comments>
		<pubDate>Sun, 02 Dec 2012 07:00:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[EE]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=47651</guid>
		<description><![CDATA[Multiple Serial Devices in One Terminal, from John Donnal: My good friend and all around computer genius [Jim] has produced quite a nice terminal program that can host multiple serial devices in a single prompt. Its super easy to use. In hurry? Grab the git repo: https://git.jim.sh/jim/terminal.git. Just add all the devices you want to [...]]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2012/11/MultiColorMultiTerminal.png" alt="MultiColorMultiSerial" title="MultiColorMultiTerminal.png" border="0" width="556" height="346" /></p>
<p>Multiple Serial Devices in One Terminal, from <a href="http://jdonnal.scripts.mit.edu/home/?p=135">John Donnal</a>:</p>
<blockquote><p>My good friend and all around computer genius [Jim] has produced quite a nice terminal program that can host multiple serial devices in a single prompt. Its super easy to use. In hurry? Grab the git repo: <a href="https://git.jim.sh/jim/terminal.git">https://git.jim.sh/jim/terminal.git</a>. Just add all the devices you want to display as command line arguments and *presto* you have a color coded super prompt.</p>
<p>This is a great tool for debugging multiple devices at once. My latest project involves an EZ430 wireless kit and unfortunately I don&rsquo;t have the $$ for IAR or CodeWorks. *yet*. So I am forced to use gcc which is cool but the Simpliciti network stack for the EZ430 has to be ported over and there are all sorts of hiccups and bugs that plague this sort of wireless network setup.</p></blockquote>
<p><a href="http://jdonnal.scripts.mit.edu/home/?p=135">Read more.</a></p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=47651</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Python Packages to Investigate #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2012/10/12/twp-python-packages-to-investigate-piday-raspberrypi-raspberry_pi/</link>
		<comments>http://www.adafruit.com/blog/2012/10/12/twp-python-packages-to-investigate-piday-raspberrypi-raspberry_pi/#comments</comments>
		<pubDate>Fri, 12 Oct 2012 12:00:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=42384</guid>
		<description><![CDATA[Part of working with your Raspberry Pi is learning to code in Python to take advantage of working directly with the device. While the Adafruit WebIDE is one of the easiest way to roll up your sleeves and build from nothing &#8212; you may also find for certain projects that you will want to install [...]]]></description>
				<content:encoded><![CDATA[<p>Part of working with your Raspberry Pi is learning to code in Python to take advantage of working directly with the device. While the <a href="http://learn.adafruit.com/webide/">Adafruit WebIDE</a> is one of the easiest way to roll up your sleeves and build from nothing &#8212; you may also find for certain projects that you will want to install packages that have great tools and functionality already built-in. </p>
<p>Take some time to check out what is out there; adding in code snippets doesn&#8217;t just help you get what you need more quickly, it helps you learn how others have solved the problems you are tackling.</p>
<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2012/10/pygame.jpg" alt="pygame" title="pygame.jpg" border="0" width="600" height="173" /></p>
<p>A great tool used for more than just games &#8212; also for playing back media and setting up lightweight interactive GUIs.</p>
<blockquote><p>Pygame is a set of Python modules designed for writing games. Pygame adds functionality on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system. Pygame itself has been downloaded millions of times, and has had millions of visits to its website.</p></blockquote>
<p><a href="http://www.pygame.org/wiki/about">Read More</a>.</p>
<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2012/10/PyMedia.png" alt="PyMedia" title="PyMedia.png" border="0" width="600" height="116" /></p>
<p>In many ways the go-to package for playing back compressed media in Python, but make sure you prepare for the dependencies and set your expectations for what media can be played back over a $35 computer at an appropriate level. </p>
<blockquote><p> is a Python module for wav, mp3, ogg, avi, divx, dvd, cdda etc files manipulations. It allows you to parse, demutiplex, multiplex, decode and encode all supported formats. It can be compiled for Windows, Linux and cygwin.</p>
<p>PyMedia was built to be really simple and flexible at the same time. See tutorial for example. It allows you to create your own mutimedia applications in a matter of minutes and adjust it to your needs using other components. Python language is choosen because of simple semantics, complete and reach set of features.</p>
<p>Take a look at the PyCar application which takes advantage of the PyMedia library extensivelly and can turn your PC into the powerful car media center.</p></blockquote>
<p><a href="http://pymedia.org/index.html">Read More</a>.</p>
<hr />
<p><a href="https://www.adafruit.com/products/998"><img src="http://www.adafruit.com/ThingsThatChange/freepi.jpeg" height="57" width="97" border="0" align="left" hspace="4" vspace="4" alt="998" /></a>Each Friday is PiDay here at Adafruit, be sure to check out our <a href="http://www.adafruit.com/blog/category/raspberry-pi/">posts,</a> <a href="http://learn.adafruit.com/category/raspberry-pi">tutorials</a> and new <a href="https://www.adafruit.com/raspberrypi">Raspberry Pi related products.</a> Have you tried the new <a href="http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro">&#8220;Adafruit Raspberry Pi Educational Linux Distro&#8221;</a> ? It&#8217;s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there&#8217;s more! <a href="http://learn.adafruit.com/webide/">Try our new Raspberry Pi WebIDE!</a> The easiest way to learn programming on a Raspberry Pi.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=42384</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn Python the Hard Way #piday #raspberrypi @Raspberry_Pi</title>
		<link>http://www.adafruit.com/blog/2012/10/12/learn-python-the-hard-way-piday-raspberrypi-raspberry_pi/</link>
		<comments>http://www.adafruit.com/blog/2012/10/12/learn-python-the-hard-way-piday-raspberrypi-raspberry_pi/#comments</comments>
		<pubDate>Fri, 12 Oct 2012 11:00:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.adafruit.com/blog/?p=42377</guid>
		<description><![CDATA[I have often heard programmers recommending Zed A Shaw&#8216;s book Learning Python the Hard Way as an excellent way for a novice programmer to build a firm foundation not only in Python, but in coding as a discipline. The &#8220;hard&#8221; part is the insistence that the student type in all of the exercises by scratch, [...]]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.adafruit.com/adablog/wp-content/uploads/2012/10/lpthwbook.jpg" alt="Lpthwbook" title="lpthwbook.jpg" border="0" width="400" height="620" /></p>
<p>I have often heard programmers recommending <a href="http://zedshaw.com/">Zed A Shaw</a>&#8216;s book <em>Learning Python the Hard Way</em> as an excellent way for a novice programmer to build a firm foundation not only in Python, but in coding as a discipline. The &#8220;hard&#8221; part is the insistence that the student type in all of the exercises by scratch, forcing a little muscle memory, in addition to learning to solve problems as efficiently as possible.</p>
<p>I encourage you to consider picking up the physical book as well, but those who want to check out this resource before buying will be happy to see that the HTML version of the book is <a href="http://learnpythonthehardway.org/book/">free online at the book&#8217;s website</a>.</p>
<p>It occurs to me that uniting <em>the Hard Way</em> with the Adafruit Raspberry Pi WedbIDE &#8212; <em>the easiest way to learn programming on a Raspberry Pi </em> &#8212; might be a killer combination.</p>
<hr />
<p><a href="https://www.adafruit.com/products/998"><img src="http://www.adafruit.com/ThingsThatChange/freepi.jpeg" height="57" width="97" border="0" align="left" hspace="4" vspace="4" alt="998" /></a>Each Friday is PiDay here at Adafruit, be sure to check out our <a href="http://www.adafruit.com/blog/category/raspberry-pi/">posts,</a> <a href="http://learn.adafruit.com/category/raspberry-pi">tutorials</a> and new <a href="https://www.adafruit.com/raspberrypi">Raspberry Pi related products.</a> Have you tried the new <a href="http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro">&#8220;Adafruit Raspberry Pi Educational Linux Distro&#8221;</a> ? It&#8217;s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there&#8217;s more! <a href="http://learn.adafruit.com/webide/">Try our new Raspberry Pi WebIDE!</a> The easiest way to learn programming on a Raspberry Pi.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=42377</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk

 Served from: www.adafruit.com @ 2013-06-18 02:31:11 by W3 Total Cache -->