Monday, September 29, 2014

Working with BMP file C++ convert image in to an array

I described insides of the BMP file Here.

I needed a program which converts bmp image in a 2 dimensional array of 0 and 1. So i could display the image on the LCD display from Nokia 5110.

Here I have the source code, written in C++, now i will explain how it works.

int main(int argc, char *argv[])

How the BMP (bitmap) image looks from the inside, in binary

I needed to create a mitmap image in to code converter for Nokia 5110 display. So i decided to use .bmp images, just because they are simple.

If you want to look inside image file (binary code) you can use any "hex editor", if you open any file, programm will display to you hexadecimal codes from which this file consist of. I use "Hex Editor XVI32"

Sunday, September 28, 2014

nokia 5110 LCD display AVR


Now i will write about nokia 5110 display.

Saturday, September 27, 2014

Working with LCD display on HD44780 AVR

If you need only ready to use library, you can get it here.

Datasheet


I ordered display from ebay, 2 lines by 16 symbols.


How to work with AVR MC pins and their additional functions

I will write an overview about different AVR ATmega8 pins and show some coe examples for working with tem.


Friday, September 26, 2014

PC games I've made with SDL and C++

Long time ago i decided to teach myself how to make computer games. So here i will show what games i created.
All games written on c++ with SDL library, some of them have source code, too bad I don't have source code for all of them.

Horizontal shooter


The first semi-game i have ever made, i wanted everything in it, so it was never finished, moreover when it was working CPU usage was 100% and RAM was fille with garbage.

Media Tech MT1501 gamepad wireless driver

Gamepad driver, I am afraid to lose the disc. So i will keep it here.

Media Tech MT1501 gamepad wireless driver
https://drive.google.com/file/d/0B57Rnj-YfbQFanVmaGhLYnllbEU/edit?usp=sharing