Skip to content

Small error in Wifi.ino example #2

Description

@Martin-Laclaustra

Congratulations! What you do in this library is really ingenious!

I think that you have a little error here:

vga.setFont((uint8_t*)fnt_arial12_data, FNT2_ARIAL12_SYMBOLS_COUNT,

It should be:

  vga.setFont((uint8_t*)fnt2_arial12_data, FNT2_ARIAL12_SYMBOLS_COUNT, 

By the way, in this example you might want to consider changing:

const char* ssid = "SSID";
const char* password = "PASSWORD";

to:

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK  "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

... which is the standard in the ESP8266 arduino core examples (it has advantages for defining the key at compile time).

Also, in the examples in general, you may want to add WiFi.mode(WIFI_OFF); in setup() to make sure that the ESP8266 does not connect automatically to the network. May be, you may also want to change the serial speed to Serial.begin(115200);, also standard in the ESP8266 arduino core examples.

Best regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions