Dear buhosoft, after creation some example from your code, here is a one problem.
I have readed value from incrementation buttons (graphically created Increment and Decrement btns) and after printing it to display, this was overlapped to unidentifiable signs.
What does this mean ? How do I display correct clear numbers ? (f.e. at this moment if I increment a value from 18.0 to 18.5, there is displayed last digit zero together with 5)
Bobo:
Dear buhosoft, after creation some example from your code, here is a one problem.
I have readed value from incrementation buttons (graphically created Increment and Decrement btns) and after printing it to display, this was overlapped to unidentifiable signs.
What does this mean ? How do I display correct clear numbers ? (f.e. at this moment if I increment a value from 18.0 to 18.5, there is displayed last digit zero together with 5)
Hello! I'd like to add some comments regarding this display.
I got it from DX last week, like others. After fiddling couple of long unsuccesful evenings with this display showing only white screen on different boards (clones - Duemilanove, Uno, Mega1280), sometimes this white screen seemed to blink - actually white lines were alternating odds/evens, I noticed, that some days ago one buyer left review for this particular screen model in the same auction ID, which I bought, saying that it is ILI9341 chip in LCD and he succesfully used Adafruit's TFTLCD library.
But still I couldnt get it to work with this library using LCD controller auto-detection.
In my case auto detection started to work, when I uncommented in Adafruit_TFTLCD.cpp file lines 878 to 883 (the first FOR cycle in "uint16_t Adafruit_TFTLCD::readID(void)" function) - then it auto-detected chip and started to work.
Also display works if I forcefully assign ID of this particular display e.g. 0x9341. I guessed, that this LCD controller needed some kind of "push" for reading full memory - strange.
My guess, that this display from "mcufriend" lacks some filtering capacitors on power lines from arduino board, hence artifacts like those lines on half of display and unstable detection on some copies. My display shows such lines, when I power 'duinos from exrternal battery or power supply, but works without artifacts from USB. I'll try to add some later and see if it changes something.
Note: disconnecting touch panel does not affect those white lines, although touch panel uses some data pins from duino - tried that.
Also there is free unpopulated connector labeled CON1 but without pinout markings. It turns out it is only 3.3v tolerant pinout and here I give You what I found out using multimeter (GND and 3.3V pins You can find easily with multimeter)
Look from bottom side as You can read shield name and website name (like in OP photo up):
|<- edge of board
LCD_D7 o o LCD_D6
LCD_D5 o o LCD_D4
LCD_D3 o o LCD_D2
LCD_D1 o o LCD_D0
LDC_WR o o LCD_RD
LCD_CS o o LCD_RS
SD_SS o o SD_SCK
SD_DO o o SD_DI
3v3 o o GND
Onboard 3.3v stabilizer U1 is only for SD card LCD
My latest program based on Buhosoft files added here before, is running.
At this moment I have created simple start program (only design display) for room thermostat which is communicated via I2C.
Here you have a code as an example. Libraries used for it is based on mentioned Buhosoft files.
Sorry for hard designed code. At this moment is in progress.
I would like add icons from SD card instead of menu text. But I don't know how do I link a SD card this MCUfriend module to Ard. MEGA. If you have an idea and functional code, please help me with. Thanks.
One method to remove Arduino libraries is to:
find where your personal sketches are stored, do this by looking at preferences under the files tab in the Arduino IDE
open your personal sketches folder and select the libraries folder within it
choose (highlight) the library you want to delete and press the delete key.
restart the Arduino IDE.
I hope this helps. I did this on a Windows Vista machine to get rid of all the libraries that did not work with this 2.8 inch display.
Please note this will remove the library and hence it cannot work with other sketches you may have written and want to keep working.
I attach the Arduino Uno version and Arduino Mega version library.
This is the final version, I have refurbished the example sketches, and now work fine with Arduino UNO and Arduino MEGA, including the SD card reader in Arduino MEGA.