Helping transition to an Arduino Giga R1 Wifi

I have a successful project based on the Arduino R4 Wifi and an Adafruit 1.8 display shield with joystick. this project provides a menu displayed on the shield which can be navigated around with the joystick. The arduino also acts as an HTTP server and on a separate port a sockets server (using mSockets libray) it serves up a webpage and then provide bi directional comms via sockets to update both client and server. This all works well. So I decided I would like to expand functionality and features but ran in to memory limitations, so thought I would try the Giga R1 Wifi. However this is where I ran in to a couple of problems.

  1. I cant see how to get support for my Adafruit 1.8 shield with joystick on the Giga?

  2. On looking at the available documentation I can see that the previous mSockets library is no longer compatible and the documents suggest that it is all built in to WiFi.h and you can simply change from the previous WiFiS3.h to WiFi.h, and use declarations such as WifisocketServer. But there is a lack of any examples of this and many lines of the old code will not compile. Does anyone have examples of how to use sockets in this newer environment, and attach call back functions to onconnection, onmessage etc, or whatever the new method may be.

Many thanks for any help with this.

Manually wire the connections from the shield to the Giga. Here's how:

The Adafruit shield typically uses the following:
TFT_CS → D10
TFT_RST → D9
TFT_DC→ D8
TFT_MOSI → D11
TFT_SCLK → D13
TFT_LED → (tied to 3.3V)
TFT_MISO (unused by TFT but used by SD if present)
Joystick typically uses analog pins for X/Y and digital pin for select button

Map those signals to available SPI-capable pins on the Giga. If needed, use the SPIClass constructor to define a custom SPI interface.

Thank you for the input re pin out, but the problems seem to be all library support issues. The previously used libraries are not supported and its unclear how anu built in / new libraries support the features used in the past so I think I'm at a dead end with this board and will mark it down as an expensive mistake trying to move the project to it.

1 Like