Go Down

Topic: Problem with Sample sketch (Read 3 times) previous topic - next topic

Staedtler

#16
Feb 02, 2011, 08:35 pm Last Edit: Feb 02, 2011, 08:57 pm by Staedtler Reason: 1
That library is so buggy that is not even funny.

Also, there is some random codding being commented where it shouldn't...

Like this:

I've fixed that, but nothing seems to change on the "clearPixel" error.

I get to the point to comment out and delete part of the code related to "clearPixel", and the error stays there randomly on different parts of the code with the same "clearPixel" error, where there is no more "clearPixel" in the code!

That library is buggy pal. Try to find another one. vvvvvvvvvvvvvvvvvvvvvvvv


Edit: I've found the one working. Delete the previous library first! Download this library.

After installing T6963_Lib to Arduino's "libraries" folder, download this file and replace it for the same file on T6963_Lib's library.

Both examples should work after that with the new library.




--------------------------------------
Eight bytes walk into a bar. The bartender asks, 'Can I get you anything?'
- 'Yeah', reply the bytes

Staedtler

#15
Feb 02, 2011, 07:28 pm Last Edit: Feb 02, 2011, 07:57 pm by Staedtler Reason: 1
Looks like you need to use brackets instead parenthesis, but a short junk of code is difficult to debug.

Since you didn't had any error until that line, I was duplicating the code used on ""// Set a single pixel at x,y (in pixels) to 1 (on)".

I think you have to dump all the code in one post to understand it.


Edit: I've found the library. Is a mess, and is not debugged.
Let me check if I get somewhere.

--------------------------------------
Eight bytes walk into a bar. The bartender asks, 'Can I get you anything?'
- 'Yeah', reply the bytes

Metalfan1185

I do pay attention to the errors lol I'm new to C and i'm still learning the syntax.  I understand that if you arrow key over the brackets and parenthesis you it points out their mates (great feature)

has anyone else used this library for a t6963c display before? am I the only one having this issue?

Metalfan1185

ok, I changed it like the last post and the error now says "Function 'byte T6963::clearPixel(byte, byte)' is initialized like a variable"

code:

Code: [Select]
// ------------------------------------------------------
// Set a single pixel at x,y (in pixels) to 0 (off)
// ------------------------------------------------------
byte T6963::clearPixel (byte x, byte y) (
  SetAddressPointer((_GH + (x / _FW) + (_GA * y)));
  byte tmp=B11111000;
  tmp |= (_FW-1)-(x%_FW); //LSB Direction Correction
  writeCommand(tmp);
  return tmp;
  )
 
// ------------------------------------------------------

Staedtler

Quote
sometimes when I get the errors at the bottom of the screen I have no idea what they mean lol


They actually tells you exactly what is going on.
Try to pay attention on what the error message says.
--------------------------------------
Eight bytes walk into a bar. The bartender asks, 'Can I get you anything?'
- 'Yeah', reply the bytes

Go Up