hello bitmaniac,
In some previous posts, it is said that your code contains some errors. Can you point out those errors to me ? ? ?
I'm having a hard time getting the nokia 3310 LCD to work.
hello bitmaniac,
In some previous posts, it is said that your code contains some errors. Can you point out those errors to me ? ? ?
I'm having a hard time getting the nokia 3310 LCD to work.
bitmaniac,
Where do i have to place the data generated by the matrix program ???
shahidali55, you have to place the data in the start of your program, after the device and xtal definition. However, I stumbled on a problem with bitmaniacs matrix program. It generates code in one long string for ech line of the display, however these lines get to long for the PICBASIC to interpret them, so it cuts them off when they are longer than 250 symbols, so the picture gets ruined. I tried to write my own program, that would split the data in more lines, but when i split the data it for some reason ads a $00 byte after each line which results in shifted lines, that also ruins the graphic. Does anyone know how to deal with this?
Any replies would be appreciated
Regards
Denis Tcherniak
I meant, that's not a bug in my program, it works perfectly, i mean the PICBASIC program. When I add multiple DATA statements eg.
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
and then make the pic "paste" all the data to the screen it adds an empty column after each DATA line. It draws the first 11 black lines then it adds an empty line, and then it continues to the second data line.
Regards
Denis Tcherniak
I don't follow what you're trying to say...pic 'paste'...adds empty column...???
If it's not a bug in your program (what program? where?) and it's a PICBASIC problem, then post the code for the PICBASIC program. I've used DATA plenty of times without a problem, up to and including lines 254 characters long.
By, "my program" i meant a prog I wrote in VB.net for converting BMP pictures to PBP DATA code, so the lines wouldn,t get longer than 250 characters.
I am sorry, it is late, and it is hard to explain the problem. I have attached my PBP code. The data I want to use as picture is declared in the very start of the program, and it is slitted, so the lines are < 250. After the initialization of the display I call the LCD_SHOWIMAGE sub, this happens at line 95. The LCD_SHOWLCD is running a loop 504 times, each time advancing to the next DATA byte, to fill the entire display matrix with data. I am using a filled with black pixels image to make the debugging easier. I have attached a photo of the display, when my program has been run. The focusing isn't good, but notice the white lines. There are 8 of them, equal to the number DATA strings in the program.
Regards
Denis Tcherniak
Bookmarks