Hi all.Sorry to be a nuisance. I want to test if a pixel is lit on a glcd. This code doesn't work. How do I define the start of SSD1306_BufferAlias?
I don't want to copy and change the plot routine, well if I could still plot I would. I'm thinking of modifying the glcd for my own use and just use different inits for different displays but that's not encouraged it seems. Don't see why not. I got to include the glcd anyway so can't see the difference.
Hi Evan. You mentioned that the arduino c include idea is ad hoc and you want standardisation in GCB and that anyone can use the lib includes for their own ends. That's what I'll do a bit. Seeing it's only a black and white display I could change pset x,y,0 to 2-xor,3-pixel test set/clear. It would then be just SSD1306 glcd driver. I would be portable in that it would work on pic and uno but that's what uno and rpi is,open source on an attempt to standardise. I can see that keeping the x,y,colour format works for all displays the same idea. I'll see again if I can figure out how to use SSD1306_BufferAlias from outside include glcd.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. My problem is I'm unfamiliar with functions. I only started using sub on the weekend.I got side tracked half way through a robot project. I'll get back to it again. Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For those following along...... I delete the posting with the code. As after speaking offline with Stan i thought has was not going to use the code.
Summary: Turned out that reading of the help, specifically the FAQ helped, and printing numbers and strings needs to use STR(number_variable) and to add spaces to a string to use PAD() or LEFTPAD()
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all.Sorry to be a nuisance. I want to test if a pixel is lit on a glcd. This code doesn't work. How do I define the start of SSD1306_BufferAlias?
I don't want to copy and change the plot routine, well if I could still plot I would. I'm thinking of modifying the glcd for my own use and just use different inits for different displays but that's not encouraged it seems. Don't see why not. I got to include the glcd anyway so can't see the difference.
This is a relatively simple method to implement.
I already posted on this about a month ago. is this a different ask?
Hi Evan. You mentioned that the arduino c include idea is ad hoc and you want standardisation in GCB and that anyone can use the lib includes for their own ends. That's what I'll do a bit. Seeing it's only a black and white display I could change pset x,y,0 to 2-xor,3-pixel test set/clear. It would then be just SSD1306 glcd driver. I would be portable in that it would work on pic and uno but that's what uno and rpi is,open source on an attempt to standardise. I can see that keeping the x,y,colour format works for all displays the same idea. I'll see again if I can figure out how to use SSD1306_BufferAlias from outside include glcd.
Thanks. My problem is I'm unfamiliar with functions. I only started using sub on the weekend.I got side tracked half way through a robot project. I'll get back to it again. Thanks again.
For those following along...... I delete the posting with the code. As after speaking offline with Stan i thought has was not going to use the code.
Summary: Turned out that reading of the help, specifically the FAQ helped, and printing numbers and strings needs to use STR(number_variable) and to add spaces to a string to use PAD() or LEFTPAD()
:-)