View previous topic :: View next topic |
Author |
Message |
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Tue Sep 29, 2015 10:45 pm Post subject: Text invert method |
|
|
I am a beginner BACOM-AVR
I use touchscreen LCD.
I can't find method how can I change selected text and backgroung color invert.
I display some list and select one list then change text and backgroud color.
I find document and forum, but I can't find method.
I am sorry for very basic quesrtion on this Forrum, but I can't receive help other people.
If someone know this method, then please help me.
Thanks
(BASCOM-AVR version : 2.0.7.8 ) |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Wed Sep 30, 2015 12:40 am Post subject: |
|
|
You should say which LCD and Bascom graphics driver you use, show some code which tells us what you do.
But in general there is the LCDAT command, which allows to invert the text/background color. Set this to display the inverted version of the text you have selected.
Look LCDAT up in the Help. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Wed Sep 30, 2015 1:26 am Post subject: where can I get glcdSED.lbx file |
|
|
I am very surprise prompt response.
I read LCDAT function document, but that need glcdSED.lbx file.
Where I can get glcdSED.lbx
Thanks. |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Wed Sep 30, 2015 6:46 am Post subject: |
|
|
The library files are installed when you install Bascom. Look in the folder /Program Files/Bascom-AVR/Libs and you should see it. As long as its there, just put a statement in your code like:
$include "glcdSED.lbx"
That should call in the library, then you can use the commands from it.
If you look in your Samples folder ( also installed with Bascom ) you will see many examples of how to use the various functions.
Of course, you must have an LCD which is physically compatible with the library you are trying to use. The glcdSED.lbx is intended for various displays using SED driver chips. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Sep 30, 2015 1:03 pm Post subject: |
|
|
you use the T6963 graphic chip. It has support for different modes. Using the MODE SET command you can use OR, EXOR or AND mode. In your case :
- use LOCATE to specify the proper location
- use GLCDCMD &B1000_0001 for the EXOR mode
- use LCS to output the same text
- use GLCDCMD &H1000_0000 to set it back to OR mode _________________ Mark |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Thu Oct 01, 2015 10:03 am Post subject: Thanks |
|
|
Thanks
I will try again |
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Thu Oct 01, 2015 10:21 am Post subject: I can access your font routine |
|
|
Evert
I can't access your url and font routine.
Please check again.
Thanks |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Thu Oct 01, 2015 6:19 pm Post subject: |
|
|
Link works for me as well.
Nard
PS Chrome browser Version 45.0.2454.101 m, Win7 pro 64b _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel"
Last edited by Plons on Sat Oct 03, 2015 12:57 am; edited 1 time in total |
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Sat Oct 03, 2015 12:08 am Post subject: I can't access all of my browser |
|
|
Evert
I can't access your link and site with all of my browser(ie, crome, Mozilla)
Message is can't find server. |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Sat Oct 03, 2015 12:20 am Post subject: |
|
|
Link from Everts works fine for me under Firefox _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
pykedgew
Joined: 22 Feb 2005 Posts: 17 Location: Australia
|
Posted: Sat Oct 03, 2015 11:33 pm Post subject: |
|
|
Same here too, link from Everts works fine for me under Firefox |
|
Back to top |
|
|
|