BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:15 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: HSERIN/HSEROUT differences between Nano-18/Nano-40?
PostPosted: Tue Oct 18, 2011 8:49 pm 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 527
Hi again,

As I mentioned earlier, my 4G system is being used with an Arduino Mega setup.... Here is the beginning of my Init function for the OLED.

Code:
void RemoteDisplay::Init(void) {                // lets initialize our display
    byte bBuffer[10];                // Have a default buffer
    // first do the default stuff
    OLEDSerial.begin(125000);        // lets try as fast a speed as possible.
    do {
        delay(250);                // give some time for hardware to initialize
        OLEDSerial.print(0x55, BYTE);
        OLEDSerial.print(0x0, BYTE);
    }
    while (!OLEDWaitForAck(100));

   

What you may notice that is different here is that not only do I output the 55 hex character, I found you also need to output a 0 hex value as well. It works well at the high baud rate.

Hope that helps
Kurt


Top
 Profile  
 
 Post subject: Re: HSERIN/HSEROUT differences between Nano-18/Nano-40?
PostPosted: Wed Oct 19, 2011 6:16 am 
Offline
Guru

Joined: Sun Jan 03, 2010 8:01 am
Posts: 55
Location: Eau Claire, WI
Greeting Kurt,

Thanks for the response! I have come to notice that the 4D System-based LCDs systems have required a few extra steps (that are not outlined in the manual) in order to achieve the expected results!

Thanks for the hint on sending a "0" after the "55"! I'll give that a try after work tonight.

Thanks again for the help Kurt! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO