<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>StevePresley.net - .net microframework</title><link>http://stevepresley.net:80/Tags/.net%20microframework</link><description>StevePresley.net - .net microframework</description><item><title>Gadgeteer Mood Cube</title><link>http://stevepresley.net:80/gadgeteer-mood-cube</link><description>&lt;p&gt;I&amp;rsquo;m working with a few .NETMF folks and have been talking with &lt;a href="https://twitter.com/ransomhall" target="_blank"&gt;@ransomhall&lt;/a&gt; (&lt;a href="http://ransomhall.com" target="_blank"&gt;http://ransomhall.com&lt;/a&gt;) about projects to collaborate on.&lt;/p&gt;
&lt;p&gt;Eric created a &lt;a href="http://www.ransomhall.com/Pages/MoodCube.aspx" target="_blank"&gt;Mood Cube&lt;/a&gt; using a &lt;a href="http://www.ghielectronics.com/catalog/product/132" target="_blank"&gt;GHI FEZ Rhino&lt;/a&gt; and 4 &lt;a href="http://thingm.com/products/blinkm.html" target="_blank"&gt;BlinkM Smart RGB LEDs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I created a &lt;a href="http://netmf.com/gadgeteer" target="_blank"&gt;Gadgeteer&lt;/a&gt; version using a &lt;a href="http://www.amazon.com/gp/product/B006WJ6T4Y/ref=as_li_ss_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B006WJ6T4Y&amp;amp;linkCode=as2&amp;amp;tag=dsaxmancom-20" target="_blank"&gt;FEZ Hydra&lt;/a&gt;, &lt;a href="http://www.amazon.com/gp/product/B00613TSBM/ref=as_li_ss_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B00613TSBM&amp;amp;linkCode=as2&amp;amp;tag=dsaxmancom-20" target="_blank"&gt;USB ClientDP Module&lt;/a&gt; and a &lt;a href="http://www.amazon.com/gp/product/B00613WCKQ/ref=as_li_ss_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B00613WCKQ&amp;amp;linkCode=as2&amp;amp;tag=dsaxmancom-20" target="_blank"&gt;MultiColor LED Module&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I printed out a 30mm hollow cube (&lt;a href="/Media/Default/models/LEDCube.skp" target="_blank"&gt;Sketchup file&lt;/a&gt;) (&lt;a href="/Media/Default/models/LEDCube.stl" target="_blank"&gt;STL file&lt;/a&gt;) on my &lt;a href="http://store.makerbot.com/replicator.html" target="_blank"&gt;MakerBot Replicator&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I then used a mounting board (more details on those coming soon!) that I cut out of acrylic to mount the Hydra and Modules using some &lt;a href="http://www.amazon.com/gp/product/B000FN81FI/ref=as_li_ss_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B000FN81FI&amp;amp;linkCode=as2&amp;amp;tag=dsaxmancom-20" target="_blank"&gt;bolts&lt;/a&gt; and &lt;a href="http://www.amazon.com/gp/product/B000FK9HH2/ref=as_li_ss_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B000FK9HH2&amp;amp;linkCode=as2&amp;amp;tag=dsaxmancom-20" target="_blank"&gt;nuts&lt;/a&gt; I sourced on Amazon.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s a demo of the cube working:&lt;br /&gt; &lt;video width="320" height="240" controls="controls"&gt; &lt;source src="/Media/Default/video/MoodCube_web.mp4" type="video/mp4" /&gt; &lt;object data="/Media/Default/video/MoodCube_web.mp4" width="320" height="240"&gt; &lt;embed src="/Media/Default/video/MoodCube_web.mp4" width="320" height="240" /&gt; &lt;/object&gt; &lt;/video&gt;&lt;/p&gt;
&lt;p&gt;Here is the code that I used:&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt;using System;


using System;
using GT = Gadgeteer;

namespace MoodLight_Hydra
{
    public partial class Program
    {
        int i = 0;
        int direction = 1;
        int color = 0;
        // This method is run when the mainboard is powered up or reset.   
        void ProgramStarted()
        {
            multicolorLed.GreenBlueSwapped = true;
            GT.Timer timer = new GT.Timer(5);

            timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
            timer.Start();
        }

        void timer_Tick(GT.Timer timer)
        {
           // Debug.Print("i: " + i);

            switch(color)
            {
                case 0:
                    multicolorLed.SetBlueIntensity(i);
                    break;
                case 1:
                    multicolorLed.SetGreenIntensity(i);
                    break;
                case 2:
                    multicolorLed.SetRedIntensity(i);
                    break;
            }

            if (i &amp;gt;= 255)
            {
                direction = -5;
            }
            else if (i &amp;lt;= 0)
            {
                direction = 5;
                if (color==2)                 
                    color = 0;                
                else
                    color+=1;

            }

            i += direction;

        }
    }
}
&lt;/pre&gt;
&lt;div&gt;Download a &lt;a href="http://stevepresley.net/Media/projects/MoodLight_Hydra.zip" target="_blank"&gt;zip file of the full project here&lt;/a&gt;.&lt;/div&gt;</description><pubDate>Mon, 06 Aug 2012 03:51:06 GMT</pubDate><guid isPermaLink="true">http://stevepresley.net:80/gadgeteer-mood-cube</guid></item><item><title>Richmond Software CraftsmanShip Group on 3/29/12 - It's embedded development night!</title><link>http://stevepresley.net:80/richmond-software-craftsmanship-group-on-3-29-12</link><description>&lt;p&gt;Mike Huffaker and I will be talking about embedded development this coming Thursday at the March meeting of the &lt;a href="https://groups.google.com/forum/#!forum/rscg" target="_blank"&gt;Richmond Software Craftmanship Group&lt;/a&gt;.&amp;nbsp; We meet at the &lt;a href="http://snagajob.com" target="_blank"&gt;SnagAJob.com&lt;/a&gt; offices in Glen Allen, VA.&amp;nbsp; Mike will be discussing &lt;a href="http://www.arduino.cc/" target="_blank"&gt;Arduino&lt;/a&gt; development and I will be talking about &lt;a href="http://netmf.com/" target="_blank"&gt;.NET MicroFramework&lt;/a&gt; (&lt;a href="http://netduino.com/" target="_blank"&gt;Netduino&lt;/a&gt; and &lt;a href="http://www.netmf.com/gadgeteer/" target="_blank"&gt;Gadgeteer&lt;/a&gt;) development and we will contrast the two frameworks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s no real set agenda for the talks, we will basically do some demos and have an open discussion with the group.&amp;nbsp; Whether you want to learn or have something to contribute, we encourage you to show up!&lt;/p&gt;
&lt;p&gt;Please &lt;a href="https://groups.google.com/forum/#!topic/rscg/Dd_3P0uBEZY" target="_blank"&gt;RSVP here if you are coming and would like food to eat&lt;/a&gt;, or just show up if you want to come and don&amp;rsquo;t want free pizza!&lt;/p&gt;
&lt;div id="mapviewer"&gt;&lt;iframe id="map" height="280" src="http://www.bing.com/maps/embed/?lvl=15&amp;amp;cp=37.66951424907314~-77.5721883960795&amp;amp;sty=h&amp;amp;draggable=true&amp;amp;v=2&amp;amp;dir=0&amp;amp;where1=4851+Lake+Brook+Dr%2C+Glen+Allen%2C+VA+23060&amp;amp;form=LMLTEW&amp;amp;pp=37.669734954833984~-77.57308959960938&amp;amp;mkt=en-us&amp;amp;emid=da7d74a3-d4ef-701b-1c78-9020bcaf681f&amp;amp;w=350&amp;amp;h=280" frameborder="0" width="350" name="mapFrame" scrolling="no"&gt;&lt;/iframe&gt;
&lt;div style="line-height: 20px;" id="LME_maplinks"&gt;&lt;a id="LME_largerMap" href="http://www.bing.com/maps/?cp=37.669514249073138~-77.5721883960795&amp;amp;sty=h&amp;amp;lvl=15&amp;amp;where1=4851 Lake Brook Dr, Glen Allen, VA 23060&amp;amp;mm_embed=map&amp;amp;form=LMLTEW" target="_blank"&gt;View Larger Map&lt;/a&gt;&amp;nbsp;&lt;a id="LME_directions" href="http://www.bing.com/maps/?cp=37.669514249073138~-77.5721883960795&amp;amp;sty=h&amp;amp;lvl=15&amp;amp;rtp=~pos.37.669514249073138_-77.5721883960795_4851 Lake Brook Dr, Glen Allen, VA 23060&amp;amp;mm_embed=dir&amp;amp;form=LMLTEW" target="_blank"&gt;Get Directions&lt;/a&gt;&amp;nbsp;&lt;a id="LME_birdsEye" href="http://www.bing.com/maps/?cp=q8bdtd8j22k8&amp;amp;sty=b&amp;amp;lvl=18&amp;amp;where1=4851 Lake Brook Dr, Glen Allen, VA 23060&amp;amp;mm_embed=be&amp;amp;form=LMLTEW" target="_blank"&gt;View Bird's Eye&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</description><pubDate>Fri, 20 Jul 2012 14:12:56 GMT</pubDate><guid isPermaLink="true">http://stevepresley.net:80/richmond-software-craftsmanship-group-on-3-29-12</guid></item></channel></rss>