Skip to content

Instantly share code, notes, and snippets.

@drewler
Created November 10, 2017 18:34
Show Gist options
  • Save drewler/1c82bbd0c9b8559ba3c486b796cb4b98 to your computer and use it in GitHub Desktop.
Save drewler/1c82bbd0c9b8559ba3c486b796cb4b98 to your computer and use it in GitHub Desktop.
Arduino - IPAddress to char* + e-paper print
char IP[] = "xxx.xxx.xxx.xxx"; // buffer
IPAddress ip = WiFi.localIP();
ip.toString().toCharArray(IP, 16);
paint.DrawStringAt(0, 0, IP, &Font12, COLORED);
epd.SetPartialWindowBlack(paint.GetImage(), 0, 20, paint.GetWidth(), paint.GetHeight());
epd.DisplayFrame();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment