giawa's Content - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

giawa's Content

There have been 4 items by giawa (Search limited from 09-May 23)


By content type

See this member's

Sort by                Order  

#63739 Gameduino 2 For Netduino

Posted by giawa on 01 August 2015 - 09:36 PM in Project Showcase

Were you able to display images?

I stopped my porting because of that...

 

Yes!  I'm just working on that this weekend and here is a screenshot (again, with my unfortunate phone camera).

 

images.jpg  logo.jpg  eve.jpg

 

This is a bitmap image being loaded into memory and then text being laid on top.  I don't have a micro SD card around (just ordered one off Amazon), so I wrote a quick program on my computer that converts the images to a byte array to store in the actual Netduino program.  I'm holding off on committing that code to GitHub until I can actually do file loading.  However, I don't expect any major stumbling blocks.

            GD2.Init();
            GD2.Load(mono); // this is a byte array for now - make it a file when I have a micro SD

            // clear the screen
            GD2.ClearColorRGB(0x375e03);
            GD2.Clear();

            // draw the bitmap itself
            GD2.Begin(GD2.Primitive.Bitmaps);
            GD2.ColorRGB(0x68b203);
            GD2.BitmapSize(GD2.Filter.Nearest, GD2.Wrap.Repeat, GD2.Wrap.Repeat, 480, 272);
            GD2.Vertex2ii(0, 0);

            // now draw some text
            GD2.ColorRGB(0xffffff);
            GD2.DisplayText(240, 136, 31, GD2.Options.Center, "Images?  Check!");

            GD2.Swap();

Cheers,

 

Giawa

 

Edit:  Just got game Gameduino logo demo going.  Attached screenshot above.

Edit 2:  Just added JPEG decoding.  Got stuck on something *really silly* for a while >.<




#63642 Gameduino 2 For Netduino

Posted by giawa on 24 July 2015 - 03:08 PM in Project Showcase

Yes, it's a resistive TFT touch screen and the 'GPU' is the FT800.  You can read more about the tech specs, etc here:  http://excamera.com/sphinx/gameduino2/

 

Gameduino 2 is a shield that adds a bright 4.3 inch touchscreen, an embedded GPU, headphone jack, accelerometer and microSD slot to your Arduino - or anything else with an SPI interface. Everything you need to create compelling games – right in your hand.

  • video output is 480x272 pixels in 24-bit color
  • OpenGL-style command set
  • Up to 2000 sprites, any size
  • 256 Kbytes of video RAM
  • smooth sprite rotate and zoom with bilinear filtering
  • smooth circle and line drawing in hardware - 16x antialiased
  • JPEG loading in hardware
  • built-in rendering of gradients, text, dials and buttons

 

Cheers,

 

Giawa




#63638 Gameduino 2 For Netduino

Posted by giawa on 24 July 2015 - 04:33 AM in Project Showcase

Hey everyone,

 

I've been hacking some more with my Netduino and have had some success with connecting to the Gameduino 2.  I'm not done porting yet, but I thought it might be useful and someone might have some fun with the examples I have completed.  Right now I have most of the basic examples up and running, including Hello World (text), Blobs (touch screen and shapes) and Simon (sound and touch targets).

 

https://github.com/g...eduino4netduino

 

I've attached two very unfortunate pictures below, but they sort of get the idea across.

 

pic1.jpg pic2.jpg

 

In case you were wondering if it was possible, or even practical, the answer is yes!  Some special considerations have to be made for speed, but the Netduino does a pretty good job.  I'll be finishing up porting the library and all of the examples over the next week or so.

 

As a sneak peak, here's how simple it is to get started with the Gameduino 2 and your Netduino!

        public static void Main()
        {
            GD2.Init();

            GD2.ClearColorRGB(0x103000);
            GD2.Clear();
            GD2.DisplayText(240, 136, 31, GD2.Options.Center, "Hello, Netduino!");
            GD2.Swap();
        }

Cheers,

 

Giawa




#63577 Adafruit RGB LCD Shield

Posted by giawa on 19 July 2015 - 04:59 AM in Project Showcase

Hi everyone,

 

I wrote a program for using the Adafruit RGB LCD Shield some time ago.  I've recently been playing with embedded development a bit further and decided I should open source the class library in case anyone is interested in it.

 

I've uploaded the entire project (both a class library and an example program) to GitHub here:  https://github.com/g...shield4netduino

 

I seem to remember getting some code from here on the Netduino forums, but I can't remember from who/when/what it was.  If you do recognize any of your code in my class library please do let me know for proper attribution.  It may be that I've already removed/modified that bit of code, but I want to cover my bases.

 

rgblcd.png

 

Cheers,

 

Giawa





home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.