Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
May 22, 2012
Image Size
349 KB
Resolution
2048×1536
Link
Thumb
Embed

Stats

Views
436
Favourites
8 (who?)
Comments
15
Downloads
13

Camera Data

Make
LG Electronics
Model
VS660
Focal Length
4 mm
Date Taken
May 22, 2012, 4:51:48 PM
×
Super Mario Adruino Bros by SuprVillain Super Mario Adruino Bros by SuprVillain
Playing with the 4884 shield for the Arduino, Graphics, done in Assembly. I hate Assembly. However, an app does exist that will turn a .bmp file that is monochrome in to the code for you.

So this is my first pic (not animated, just a pic) that i did by my self. Graphic done in the Gimp, use BMP2ASM for the raw data values, adjusted the code for Arduino and the LCD shield.

here is a pastebin link if you want to see the code. The Graphics ASM code is fricking huge, just for that simple picture :D

[link]

UPDATE: Moved the "mariobmp" to a seperate .h (mariobmp.h) file and load the graphic by a call. Very nice as how it frees up having to see a top of ASM code in the Arduino IDE.

And Yes, I drew the pic in the Gimp, it is an 84x48 black and white BMP file, done the old fashioned way, Pixel by Pixel.

The final plan for this thing is for me to get a working Pong on this thing... See that one small button in the bottom left hand side? Thats a "5 degrees of freedom" button, AKA a mini-primitive joystick. the 5th "degree" is actually pushing in the stick, you know, like a button.

Anyway, more soon i hope.
Add a Comment:
 
:iconadam-novagen:
Adam-Novagen May 23, 2012  Hobbyist General Artist
Shoulda made a simple RLE algorithm, silly, that'd slash something like this right down in size.
Reply
:iconsuprvillain:
SuprVillain May 23, 2012  Hobbyist Artist
The LCD library needs the Assembly, this LCD cant do RLE files. However, then next one will be a touchscreen + real graphics abilities.

See here. [link]
Reply
:iconadam-novagen:
Adam-Novagen May 23, 2012  Hobbyist General Artist
Actually I meant making a quick program with your own RLE in it. I recently worked out a form of compression for animated sprites that used my own brand of RLE, along with some other things; I ditched it after discovering that PNG still had it beat, though.
Reply
:iconsuprvillain:
SuprVillain May 24, 2012  Hobbyist Artist
I often wonder what ever happened to the APNG and MPNG formats, Animated or Motion, what ever you want to call it, Animated PNGs would be great as sprites.
Reply
:iconadam-novagen:
Adam-Novagen May 24, 2012  Hobbyist General Artist
MNG was the file extension, if I recall. GIMP supports it still, and so did some browsers for a while. APNG was an unofficial version to further the effort; Firefox supports it even now, and Chrome can handle it with an APNG plugin. I agree it's a shame, but I must admit that animated images are pretty passť compared to general multimedia like Flash and HTML5.
Reply
:iconsamiwieciekto:
non-elegant, but better:

while(true){
delay(<Place maximum long here>);
}

also never ever use 1>0 - pass constant true value or at least use 1=1

more elegant, but complicated:
I'm not expert in this language, but after a peek I suggest reading about sleep modes
Reply
:iconsuprvillain:
SuprVillain May 23, 2012  Hobbyist Artist
The Arduino Language is not a True "C" language, it is called Processing. I do need to look up if Processing can handle Real C-style code.
Reply
:iconsamiwieciekto:
I know, that's why I've googled before posting that
Reply
:iconsuprvillain:
SuprVillain May 23, 2012  Hobbyist Artist
Research, Smart :D
Reply
:iconsamiwieciekto:
Anyway, You could try endless racer game (avoid appearing obstacles), it's easy to code (I mean technical-logical aspect, I see it as array of boolean arrays progressed with timer - where You only have to check slot where player is for collision)
Reply
Add a Comment: