Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

V4.2.2.1 and Nwazet display

go nwazet display v4.2.2.1

  • Please log in to reply
2 replies to this topic

#1 slord0001

slord0001

    New Member

  • Members
  • Pip
  • 3 posts

Posted 22 November 2013 - 06:37 PM

I purchased the Go package for evaluation and was able to get a new nwazet tft display. I put together a test program from the examples. I see that the program is hanging on the canvas.Initialize(GoSockets.Socket5);. Any suggestions?

 

public static void Main()

{

var canvas = new VirtualCanvas(null, null);

canvas.Initialize(GoSockets.Socket5);

canvas.SetOrientation(Orientation.Landscape);

canvas.DrawRectangleRounded(11, 33,303, 222, 

ColorHelpers.GetRGB24toRGB565(0, 0, 0),5,RoundedCornerStyle.All);

canvas.DrawButton(245, 190,50, 20,

DejaVuSans9.ID, 12,

ColorHelpers.GetRGB24toRGB565(233, 114, 114),

ColorHelpers.GetRGB24toRGB565(255, 255, 255),

ColorHelpers.GetRGB24toRGB565(0, 0, 0),

"Button",RoundedCornerStyle.None);

canvas.DrawArrow(263, 114, 33,

DrawingDirection.Right,

ColorHelpers.GetRGB24toRGB565(172, 220, 102));

 

canvas.Execute();

Thread.Sleep(Timeout.Infinite);

}

 

 



#2 slord0001

slord0001

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 November 2013 - 04:39 AM

I was able to get it to work by doing a quick and dirty change to the VirtualCanvas.cs file in the Nwazet.Go.Display solution. I have investigated any further but it is working for all my tests so far.

 

Commented out the problem code and just basically just ignored this call.

 

public void WaitUntilModuleIsInitialized() {

Thread.Sleep(1000);

_moduleReady = true;

return;

//while (!_moduleReady)

//{

// Execute(Synchronicity.Synchronous);

// if (_spiRxBuffer[0] == 0x80 &&

// _spiRxBuffer[1] == '[' &&

// _spiRxBuffer[2] == '[' &&

// _spiRxBuffer[3] == 'n' &&

// _spiRxBuffer[4] == 'w' &&

// _spiRxBuffer[5] == 'a' &&

// _spiRxBuffer[6] == 'z' &&

// _spiRxBuffer[7] == 'e' &&

// _spiRxBuffer[8] == 't' &&

// _spiRxBuffer[9] == '.' &&

// _spiRxBuffer[10] == 'd' &&

// _spiRxBuffer[11] == 'i' &&

// _spiRxBuffer[12] == 's' &&

// _spiRxBuffer[13] == 'p')

// {

// if (_spiRxBuffer[17] != _identifier8bitCrc) throw new ApplicationException("SPI data corruption");

// _moduleReady = true;

// return;

// }

// Thread.Sleep(200);

//}

}



#3 Family

Family

    New Member

  • Members
  • Pip
  • 7 posts

Posted 23 November 2013 - 11:21 AM

Try using:

 

canvas.Initialize(GoSockets.Socket5, 10000);







Also tagged with one or more of these keywords: go, nwazet, display, v4.2.2.1

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.