TinyCircuits

TinyScreen+ and Wifi Board

Andy

TinyScreen+ and Wifi Board
« on: February 07, 2017, 06:50:39 PM »
I'm unable to get the wifi board to be recognized by a TinyScreen+. I can use the same wifi board on a tinyDuino with the CC3000 code and get it to operate client or server, but no joy when using wifi101 on a tinyScreen+. Here is the FW Check that I tried amongst other things, if someoen can see a problem, do let me know. Thanks.
==================
#include <SPI.h>
#include <WiFi101.h>

#define USB_SERIAL

#if defined(USB_SERIAL)
  #define SerialOut SerialUSB
#else
  #define SerialOut Serial
#endif

void setup() {
  WiFi.setPins(8,2,A3,-1);
  SerialOut.begin(115200);
  delay(1000);

  SerialOut.println("WiFi101 FW check.");
  SerialOut.print("WiFi101 shield: ");

// **** the board is not found, we get "NOT PRESENT" ****
 
  if (WiFi.status() == WL_NO_SHIELD) {
    SerialOut.println("NOT PRESENT");
    return; // don't continue
  }
  SerialOut.println("DETECTED");

  String fv = WiFi.firmwareVersion();
  SerialOut.print("FW version installed: ");
  SerialOut.println(fv);

  // Print required firmware version
  SerialOut.print("FW version required : ");
  SerialOut.println(WIFI_FIRMWARE_REQUIRED);

  // Check if the required version is installed
  SerialOut.println();
  if (fv == WIFI_FIRMWARE_REQUIRED) {
    SerialOut.println("Result: PASSED");
  } else {
    SerialOut.println("Result: NOT PASSED");
    SerialOut.println(" FW version too low.");
  }
}

void loop() {
  // do nothing
}