Go Down

Topic: Not Displaying Bitmaps? (Read 3 times) previous topic - next topic

ryanteck

Dec 20, 2010, 10:27 am Last Edit: Dec 20, 2010, 12:04 pm by ryanteck Reason: 1
hey
when trying to display a full black page on my screen i always have an error and it not all show up as black
the other images are fine its just a solid black page that files when using bitmap

i get this error when compiling
Binary sketch size: 3384 bytes (of a 30720 byte maximum)
avrdude: verification error, first mismatch at byte 0x0b80
        0xff != 0xfe
avrdude: verification error; content mismatch

the image is


Code: [Select]


static const byte th_b00001[] = {

 /* page 0 (lines 0-7) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,
 /* page 1 (lines 8-15) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,
 /* page 2 (lines 16-23) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,
 /* page 3 (lines 24-31) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,
 /* page 4 (lines 32-39) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,
 /* page 5 (lines 40-47) */
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
 0xff,0xff,0xff,0x00,
};



AWOL

Among the things you haven't mentioned are:
1) Your processor type
2) Your sketch

Quote
0xff != 0xfe

Maybe you've exhausted your flash.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ryanteck

Arduino Demunulative
nokia 5110 screen

full code for displaying
Code: [Select]

#include <PCD8544.h>
#include "th_b00001.h"

// The dimensions of the LCD (in pixels)...
static const byte LCD_WIDTH = 84;
static const byte LCD_HEIGHT = 48;

// pictures dimensions
static const byte bad_w =84;
static const byte bad_h = 48;

static PCD8544 lcd;

void setup() {
 lcd.begin(LCD_WIDTH, LCD_HEIGHT);
 lcd.clear();
   lcd.setCursor(0,0);
 lcd.drawBitmap(th_b00001, bad_w, bad_h);


}


void loop() {

}



0xef comes out with lines in :(

Groove

'0xef comes out with lines in'

Do you just type in random words in the hope that some will form a sentence?
Per Arduino ad Astra

ryanteck

no.
when i change it all to 0xfe on the display it has a black page with lines in -.-

ryanteck

i think it may be the converter im using. how do i get the VB.NET converter working?

http://www.arduino.cc/playground/Code/PCD8544 the one on there?

AWOL

#6
Dec 20, 2010, 02:54 pm Last Edit: Dec 20, 2010, 02:56 pm by AWOL Reason: 1
Quote
how do i get the VB.NET converter working?

Well, first, you define "working" and then you figure out how that definition differs from what you observe.

I'd probably go with the Java version, and figure out how to make it look more like Processing.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ryanteck

how do i put it into visual basic ( i think thats the code ) tried java that did not work either

AWOL

Quote
how do i put it into visual basic

Do you know VB.NET?
Do you know Visual Basic?

If the answer to either of these questions is "no", you've got some learning to do.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ryanteck

no and no. just how do i fix the problem. is there another bmp to hex i can try?

AWOL

There's the one you could write in Processing
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ryanteck


AWOL

Quote
where?

In the Processing IDE, where else?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ryanteck

i dont know how. just how can i get it working?

Imahilus

From the sound of it, this is simply beyond your skill level at this point.

As AWOL pointed out, you should probably follow some basic tutorials in a programming language first, so you can grasp the fundamentals on why it doesn't work the way you expect it to, how you can approach the problem, where to go when you can't fix it yourself to get some help and ultimately to fix the problem.
Possible languages you can use to easily convert your image:
php
python
(both of these have excellent documentation, and plenty of tutorials aimed at beginners)

I'm not entirely sure, but I do believe java is quite capable of this too? Though I'm afraid I'd have to look at somebody else to confirm this.

Go Up