Adafruit_GFX drawBitmap not working

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
tsaG
 
Posts: 5
Joined: Sat Jun 07, 2014 5:17 pm

Adafruit_GFX drawBitmap not working

Post by tsaG »

Hi,

I was using the drawBitmap function to draw an image I made using the LCD Assistant. But somehow, this doesnt work out....

Here is my Image

Code: Select all

const unsigned char wifi [] = {
0x32, 0x00, 0x27, 0x00, 
0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, 0xE0, 0xF0, 0xF0, 0xF8, 0xF8, 0x78, 0x7C, 0x3C, 0x3C,
0x3E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E,
0x1E, 0x3E, 0x3C, 0x3C, 0x7C, 0x78, 0xF8, 0xF8, 0xF0, 0xF0, 0xE0, 0xC0, 0xC0, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x06, 0x0F, 0x1F, 0x0F, 0x0F, 0x07, 0x03, 0x01, 0x81, 0x80, 0xC0, 0xE0, 0xE0,
0xF0, 0xF0, 0xF0, 0xF8, 0x78, 0x78, 0x78, 0x7C, 0x7C, 0x3C, 0x3C, 0x3C, 0x3C, 0x7C, 0x7C, 0x78,
0x78, 0x78, 0xF8, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x81, 0x01, 0x03, 0x07, 0x0F, 0x0F,
0x1F, 0x0F, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x0F, 0x07,
0x07, 0x03, 0x01, 0x81, 0x80, 0xC0, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
0xF0, 0xE0, 0xE0, 0xC0, 0xC0, 0x80, 0x81, 0x01, 0x03, 0x07, 0x07, 0x0F, 0x07, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x03, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
0x00, 0x01, 0x01, 0x01, 0x03, 0x03, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, 0x80,
0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x8C, 0xBF, 0x3F,
0x3F, 0x3F, 0x3F, 0x3F, 0x8C, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x80,
0x80, 0x80, 0x80, 
};
Here is the code (snippet)

Code: Select all

extern unsigned char wifi[];
tft.drawBitmap(5,245,wifi,50,39,GREEN);
The Image is totally distorted respectively pixel slurry :D

Im using an Arduino Due, so I cant use the PROGMEM... as far as I know.

-tsaG

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit_GFX drawBitmap not working

Post by adafruit_support_rick »

Your width (50), must be a multiple of 8.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Adafruit_GFX drawBitmap not working

Post by pburgess »

The 'width must be a multiple of 8' isn't necessarily accurate; it can be some other value, but the data must be padded to the next multiple of 8. So for example, a 50x39 bitmap requires 56 columns of data in the wifi[] array, but the last 6 are ignored when you pass 50 to the drawBitmap function. 56/8 = 7 bytes/row, 7*39rows = 273 bytes of data. I'm counting 247 bytes in your wifi[] array, so this'll need some work.

Also, the bitmap data should be in program memory, e.g.
const unsigned char PROGMEM wifi[] = {...};

tsaG
 
Posts: 5
Joined: Sat Jun 07, 2014 5:17 pm

Re: Adafruit_GFX drawBitmap not working

Post by tsaG »

Okay, thanks for the reply. Here is my next attempt...

My wifi.c, im using the online converter by Henning Karlsen since I can feed it with my pngs.
http://www.henningkarlsen.com/electroni ... r_mono.php

Code: Select all

// Generated by   : ImageConverter Mono Online
// Generated from : wifi.png
// Time generated : Sun, 08 Jun 14 10:31:06 +0200  (Server timezone: CET)
// Image Size     : 48x48 pixels
// Memory usage   : 288 bytes

const unsigned char wifi[] ={
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F,   // 0x0010 (16) pixels
0xFF, 0xBF, 0xFF, 0xFF, 0xFF, 0x5F, 0xFF, 0x2F, 0xFF, 0x3F, 0xFF, 0x17, 0xFF, 0x1F, 0xFF, 0x0B,   // 0x0020 (32) pixels
0xFF, 0x0B, 0xFF, 0x03, 0xFF, 0x05, 0xFF, 0x05, 0xFF, 0x05, 0xFF, 0x05, 0xFF, 0x01, 0xFF, 0x00,   // 0x0030 (48) pixels
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0x9F, 0xFF, 0x67, 0xFF, 0x1B, 0xFF, 0x06, 0xFF, 0x03,   // 0x0040 (64) pixels
0xFF, 0x81, 0xFF, 0x40, 0xFF, 0xE0, 0xFF, 0xA0, 0xFF, 0xF0, 0xFF, 0xD0, 0xFF, 0xE8, 0xFF, 0xE8,   // 0x0050 (80) pixels
0xFF, 0xE8, 0xFF, 0xF4, 0xFF, 0xF4, 0xFF, 0xF4, 0xFF, 0xF4, 0xFF, 0xF8, 0xFF, 0xFA, 0xFF, 0xFA,   // 0x0060 (96) pixels
0xFF, 0x3F, 0xFF, 0x03, 0xFF, 0x3C, 0xFF, 0x01, 0xFF, 0x00, 0xFF, 0x0C, 0xFF, 0x12, 0xFF, 0x6D,   // 0x0070 (112) pixels
0xFF, 0xDE, 0xFF, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xBF, 0xFF, 0x5F, 0xFF, 0xBF,   // 0x0080 (128) pixels
0xFF, 0xEF, 0xFF, 0xDF, 0xFF, 0xEF, 0xFF, 0xE7, 0xFF, 0xE7, 0xFF, 0xE7, 0xFF, 0xF7, 0xFF, 0xF7,   // 0x0090 (144) pixels
0xFF, 0xFC, 0xFF, 0xC0, 0xFF, 0x3C, 0xFF, 0x80, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00,   // 0x00A0 (160) pixels
0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x01, 0xFF, 0x03, 0xFF, 0x05, 0xFF, 0x1B, 0xFF, 0x37, 0xFF, 0x2F,   // 0x00B0 (176) pixels
0xFF, 0x7F, 0xFF, 0xBF, 0xFF, 0x7F, 0xFF, 0xDF, 0xFF, 0xEF, 0xFF, 0xDF, 0xFF, 0xEF, 0xFF, 0xEF,   // 0x00C0 (192) pixels
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xF9, 0xFF, 0xE6, 0xFF, 0xD8, 0xFF, 0x60, 0xFF, 0xC0,   // 0x00D0 (208) pixels
0xFF, 0x80, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00,   // 0x00E0 (224) pixels
0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x01, 0xFF, 0x06, 0xFF, 0x0D, 0xFF, 0x0B, 0xFF, 0x17, 0xFF, 0x3F,   // 0x00F0 (240) pixels
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE,   // 0x0100 (256) pixels
0xFF, 0xFD, 0xFF, 0xFF, 0xFF, 0xFA, 0xFF, 0xF4, 0xFF, 0xFC, 0xFF, 0xE8, 0xFF, 0xF8, 0xFF, 0xD0,   // 0x0110 (272) pixels
0xFF, 0xD0, 0xFF, 0xC0, 0xFF, 0xA0, 0xFF, 0xA0, 0xFF, 0xA0, 0xFF, 0xA0, 0xFF, 0x80, 0xFF, 0x00,   // 0x0120 (288) pixels
};
Calling the function like this.

Code: Select all

tft.drawBitmap(5, 245, wifi, 48, 48, GREEN);
Still not my picture.... (I attached a photo).

And how do I use progmem since Im using the DUE? I thought this could only been done with AVR CPUs?
Attachments
Wifi Symbol
Wifi Symbol
wifi.png (1.32 KiB) Viewed 3751 times
Foto.jpg
Foto.jpg (114.74 KiB) Viewed 3751 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit_GFX drawBitmap not working

Post by adafruit_support_rick »

Actually, that's exactly what your bitmap data looks like. I reformatted your data into 48 rows of 48 bytes. It's pretty easy to see that what's on the screen matches the data. The three columns of 0xFF stand out clearly:

Code: Select all

// Generated by   : ImageConverter Mono Online
// Generated from : wifi.png
// Time generated : Sun, 08 Jun 14 10:31:06 +0200  (Server timezone: CET)
// Image Size     : 48x48 pixels
// Memory usage   : 288 bytes

const unsigned char wifi[] ={
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xBF,
0xFF, 0xFF, 0xFF, 0x5F, 0xFF, 0x2F,
0xFF, 0x3F, 0xFF, 0x17, 0xFF, 0x1F,
0xFF, 0x0B, 0xFF, 0x0B, 0xFF, 0x03,
0xFF, 0x05, 0xFF, 0x05, 0xFF, 0x05,
0xFF, 0x05, 0xFF, 0x01, 0xFF, 0x00, 
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F,
0xFF, 0x9F, 0xFF, 0x67, 0xFF, 0x1B,
0xFF, 0x06, 0xFF, 0x03, 0xF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 
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFD,
0xFF, 0xFF, 0xFF, 0xFA, 0xFF, 0xF4,
0xFF, 0xFC, 0xFF, 0xE8, 0xFF, 0xF8,
0xFF, 0xD0, 0xFF, 0xD0, 0xFF, 0xC0,
0xFF, 0xA0, 0xFF, 0xA0, 0xFF, 0xA0,
0xFF, 0xA0, 0xFF, 0x80, 0xFF, 0x00, 
};

tsaG
 
Posts: 5
Joined: Sat Jun 07, 2014 5:17 pm

Re: Adafruit_GFX drawBitmap not working

Post by tsaG »

Okay, how do I convert it then? :D

I attached my bmp which I resized using paint and saved it as bmp...

here is the code it made

Code: Select all

//------------------------------------------------------------------------------
// File generated by LCD Assistant
// http://en.radzio.dxp.pl/bitmap_converter/
//------------------------------------------------------------------------------

const unsigned char wifi [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0xF8, 0xF8, 0xFC, 0xFC,
0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC,
0xFC, 0xFC, 0xF8, 0xF8, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xC0, 0xF0, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x3F, 0x1F,
0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x1F, 0x1F,
0x1F, 0x3F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0x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0x7F, 0x3F,
0x3F, 0x3F, 0x1F, 0x1F, 0x0F, 0x07, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
I attached a picture of the LCD Assistant, the preview looks normal.
Attachments
Assistant.PNG
Assistant.PNG (56.77 KiB) Viewed 3741 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit_GFX drawBitmap not working

Post by adafruit_support_rick »

I think there's something wrong with LCD Assistant. That data is pretty clearly 8 bits/pixel. Look at the first 48 bytes: they're symmetrical around the center, just as you would expect from looking at the first row of the image.

If it were 1 bit/pixel, then I would expect the first six bytes to be symmetrical - something like 0x00 0x00 0x0F 0xF0 0x00 0x00.

I don't know anything about LCD Assistant. But I would try changing the byte orientation to "horizontal" and see if you get something more reasonable-looking

tsaG
 
Posts: 5
Joined: Sat Jun 07, 2014 5:17 pm

Re: Adafruit_GFX drawBitmap not working

Post by tsaG »

Yeah, its working :D I just needed to switch the Byte orientation to "Horizontal" and sized it to a multiple of 8 :)

Thank you!

Next question, is it possible to import color bmps? I was using the Henning Karlsen Library with another Display before where it is possible.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit_GFX drawBitmap not working

Post by adafruit_support_rick »

Which display is that? You can do color bitmaps at the sketch level - the Adafruit_GFX drawBitmap function is strictly 1-bit. There's probably a sample sketch for that display that does a color bmp.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Adafruit_GFX drawBitmap not working

Post by pburgess »

I think that web tool is formatting the data into 8-pixel 'column chunks,' rather than rows.

And yeah. LCD Assistant. It truncates data to the next smallest 8-pixel boundary, rather than padding up. Blargh. Workaround is to pad the image manually (Photoshop, etc.) before handing it off to LCD Assistant, but you can pass the original width value to drawBitmap() (saves a wee bit of processing, since those columns aren't considered).

If using a Due, I think you can leave off the PROGMEM, as those operations are all #defined into empty nothings anyway. Or I might be confusing it with the Teensy 3.

There's no color bitmap function, since few Arduino-like boards have enough space for these, and it's not an onerous function to implement manually; biggest PITA there is needing a companion program or script to convert image files into a C array.

tsaG
 
Posts: 5
Joined: Sat Jun 07, 2014 5:17 pm

Re: Adafruit_GFX drawBitmap not working

Post by tsaG »

adafruit_support_rick wrote:Which display is that? You can do color bitmaps at the sketch level - the Adafruit_GFX drawBitmap function is strictly 1-bit. There's probably a sample sketch for that display that does a color bmp.
Thats just an ordinary Display with SSD1289 controller, for example this one
http://pic.alisvr.com/cn001/201404/3358 ... b4b975c9bc

Its included in the UTFT Library, pretty easy to use.

Code: Select all

drawBitmap(x, y, sx, sy, data, deg, rox, roy);
Draw a bitmap on the screen with rotation.
Parameters:
x:x-coordinate of the upper, left corner of the bitmap
y: y-coordinate of the upper, left corner of the bitmap
sx: width of the bitmap in pixels
sy: height of the bitmap in pixels
data: array containing the bitmap
coordinate of the pixel to use as rotational center relative to bitmaps upper left corner
roy: y- coordinate of the pixel to use as rotational cent
er relative to bitmaps upper left corner
Usage:
myGLCD.drawBitmap(50, 50, 32, 32, bitmap, 45, 16, 16); //Draw a bitmap rotated 45 degrees around its center 
Notes: You can use the onlinetool “ImageConverter 565” or “ImageConverter565.exe” in the Tools-folder toconvert pictures into compatible arrays. The onlinetool can be found on my website.
Requires that you #include <avr/pgmspace.h> when using an Arduino other than Arduino Due.
Here is the code

Code: Select all

void UTFT::drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy)
{
	unsigned int col;
	int tx, ty, newx, newy;
	double radian;
	radian=deg*0.0175;  

	if (deg==0)
		drawBitmap(x, y, sx, sy, data);
	else
	{
		cbi(P_CS, B_CS);
		for (ty=0; ty<sy; ty++)
			for (tx=0; tx<sx; tx++)
			{
				col=pgm_read_word(&data[(ty*sx)+tx]);

				newx=x+rox+(((tx-rox)*cos(radian))-((ty-roy)*sin(radian)));
				newy=y+roy+(((ty-roy)*cos(radian))+((tx-rox)*sin(radian)));

				setXY(newx, newy, newx, newy);
				LCD_Write_DATA(col>>8,col & 0xff);
			}
		sbi(P_CS, B_CS);
	}
	clrXY();
}

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”