View previous topic :: View next topic |
Author |
Message |
pvdbos
Joined: 25 Nov 2006 Posts: 96 Location: Edam
|
Posted: Fri Oct 03, 2014 7:52 pm Post subject: 4D Systems Library |
|
|
Hello All.
Has anyone noticed that there is a library for Arduino and Raspberry Pi but not for BASCOM-AVR environment.
I have a uLCD43 PCT that I want to use it with an AVR-2560 in order to make an RTC.
I have a library made for this LCD to directly send it to LCD
This works well, but now I do not use the graphics capabilities of this IC
I would like to use the IDE from 4D-system to make a graphical interface and control it with Bascom-AVR code.
Does anyone know more of it?
--------------------------------------
Heeft iemand gemerkt dat er een bibliotheek is voor Arduino en Raspberry Pi maar niet voor Bascom-AVR omgeving.
Ik heb een uLCD43-PCT die ik wil gebruiken met een AVR-2560 om daar een RTC mee te maken.
Ik heb een bibliotheek gemaakt om direct deze lcd aan te sturen
Dit werkt goed maar nu gebruik ik niet de grafische mogelijkheden van deze IC
ik wil graag de IDE van 4D-system gebruiken om hiermee de grafische interface te maken en het aansturen met Bascom-AVR code.
Weet iemand hier meer van af?
Thanx
(BASCOM-AVR version : 2.0.7.7 ) _________________ http://www.hobbyrobots.nl |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Oct 04, 2014 10:54 am Post subject: |
|
|
Hello,
maybe I spend a too much little time on 4D Systems site, but I read :
"The 4DLCD-FT843 is a powerful SPI Display which enables a SPI host to be connected directly to the display, providing a powerful set of graphics features to the host using the on board FTDI FT800 Video Engine."
and I see in this forum following the search engine :
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=12091&highlight=ft800
and you can find some solution, let us know please .
Again, to day, I can't loss to much time to search more.
sorry. if it is not you answers.
JP |
|
Back to top |
|
|
pvdbos
Joined: 25 Nov 2006 Posts: 96 Location: Edam
|
Posted: Sat Oct 04, 2014 9:32 pm Post subject: |
|
|
Thanx for the info, but I have already an 4Dsystem LCD that I will use for my project.
Does anyone know if I can use an C++ written library in Bascom?
In other words, Can I call an Library written in C++?
This library exists on the website of 4D-Systems. _________________ http://www.hobbyrobots.nl |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Oct 04, 2014 9:47 pm Post subject: |
|
|
no you can not call a C++ library.
I looked at that web but they have a lot of files/different stuff and i could not find it. you can better post a link to the file.
I think i have seen bascom code for 4D chips before. In fact the LCD master Hkipnik posted on this forum most likely?
http://www.youtube.com/watch?v=4OrmqeXyxPk
http://bascomforum.de/ _________________ Mark |
|
Back to top |
|
|
pvdbos
Joined: 25 Nov 2006 Posts: 96 Location: Edam
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Oct 04, 2014 10:16 pm Post subject: |
|
|
it seems like a simple serial lib. it should not be that hard to translate.
for example:
void bus_Out(WORD Bits)
{
unsigned char towrite[4] ;
DWORD written ;
towrite[0]= F_bus_Out >> 8 ;
towrite[1]= F_bus_Out ;
towrite[2]= Bits >> 8 ;
towrite[3]= Bits ;
WriteFile(ComHandle4D, &towrite[0], 4, &written, NULL) ;
GetAck() ;
}
would become:
sub bus_out(bits as word)
printbin #1, f_bus_out ; bits
getack
end sub
>>8 means shift 8 bits to the right so the first byte they send it the LSB. that is default in bascom when sending a variable.
it seems like a nice display but bit expensive. i am busy to get FT800 finished so i have no time for it.
but maybe already ported the code? _________________ Mark |
|
Back to top |
|
|
pvdbos
Joined: 25 Nov 2006 Posts: 96 Location: Edam
|
Posted: Sat Oct 04, 2014 10:24 pm Post subject: |
|
|
Mark
Thanks for the info
it like's not so difficult to make my own library
now I see your example. _________________ http://www.hobbyrobots.nl |
|
Back to top |
|
|
pvdbos
Joined: 25 Nov 2006 Posts: 96 Location: Edam
|
Posted: Mon Oct 06, 2014 11:36 am Post subject: Arduino Library (C) to an Bascom-avr Library? |
|
|
Hello to all.
does anyone have experience to convert a Arduino Library (C) to an Bascom-avr Library?
I will to create a ViSi Genie (4D-Systems workshop) interface that use the on-board graphic chip
this chip can control the uLCD via an AVR micro-controller.
The AVR just only send commands to my uLCD and it can play sounds, movies, photo's, and graphical items like buttons, slides, etc.
but I have not experience in the language "C" it's for my difficult to do.
Can anyone help my with this?....... _________________ http://www.hobbyrobots.nl |
|
Back to top |
|
|
|