adafruit tft lcd clear screen factory
I loaded the ssd1306_128x64_spi example up and saw the "display.clearDisplay(); " command in there so i figured since I have the library installed and its included now I should have access to that command?
And whats funny on top of it when I open up the ssd1306_128x64_spi amd try to just verify it I get an error "ssd1306_128x64_spi:335: error: "class Adafruit_SSD1306" has no member named "println"" even though its their example.
Sounds like you are using proportionally-spaced fonts instead of the original classic fonts that ships with Adafruit_GFX. Historically, when using the default classic fonts one could set the background color option of the text to the same color as the background of the screen (usually black). This would overwrite the old screen contents with new data and work because the characters using the classic fonts are a uniform size. When using proportionally-spaced fonts, the background color option for the font is disabled by design.
I hope that I have understood what the nature of your problem is and answered it in a satisfactory manner. If nothing else, at least now you know why custom font"s will not work with the so called background color feature that works with the original "classic" Adafruit fonts.
With a complete scientific quality management system, good quality and good faith, we win good reputation and occupied this field for Tft Clear Screen, Industrial Touch Screen, Embedded Lcd Display Screen, Lcd Touch,Lcd Clock Module. Welcome you to join us together to make your business easier. We are always your best partner when you want to have your own business. The product will supply to all over the world, such as Europe, America, Australia,Poland, Liberia,Florida, Paraguay.We only supply quality items and we believe this is the only way to keep business continue. We can supply custom service too such as Logo, custom size, or custom merchandise etc that can according to customer"s requirement.
I"m still waiting for the last few components to arrive before I can build the controller, however one thing I wanted to do first is test my chosen LCD with the Teensy microcontroller. I"ve never used a TFT LCD with Arduino or Teensy before, so I first wanted to make sure that I could get the desired functionality and performance out of the LCD.
The LCD I am using is a 2.4" 320x240 TFT LCD with a ILI9341 controller chip which appears to be based off of an Adafruit design, which can be used with a Teensy-optimised Adafruit_ILI9341 library for better performance.
I decided to use the Teensy-optimised Adafruit_ILI9341 library over the standard Adafruit_ILI9341 library due to the demonstrated increased frame rate and performance of the former. I downloaded the library from the Github page and followed the provided instructions to install it into the Arduino software.
After a quick online search I couldn"t find any decent tutorials on using the LCD"s Arduino library to draw shapes (which is mostly what I want the LCD to do), however after dissecting the example sketches that come with the library it became quite clear how to do it. The best source to find out what functionality is provided is the library"s main header file, which shows all the functions that library provides such as drawRect, fillRect, fillCircle, and many more.
To test the LCD and Arduino library I decided to attempt to create a simple Teensy sketch that draws eight sliders on the LCD that each change their value from a MIDI CC message received over USB-MIDI - something that the final controller software will need to do.
While I was writing the code for my display as it monitors a measurement bench, I learned I needed to manually blank the existing text in a given location. I made a function in my program for this which would fillRect() in the area the text needs to go. In order to do this, I could pass to it the X,Y, but then I have to maintain the cursor coordinates. The Adafruit_GFX class already does this so I added int16_t Adafruit_GFX::getCursor(boolean x) just beneath setCursor(). It returns cursor_x if x is 1 or cursor_y if it isn"t.
THe problem with the GFX libraries - and the newer U8x8 - is that often with the SPI TFT"s, when they write a character, they draw individual pixels used, but ignore the white space around - so the character is printed on top of a background. This is often desired, but as you found out, also means you end up with a mess when its changing.