Skip to content

Instantly share code, notes, and snippets.

View MaBecker's full-sized avatar

Mark Becker MaBecker

  • SBIT GmbH
  • Germany, Rauenberg
View GitHub Profile
@vshymanskyy
vshymanskyy / M5Stack_Espruino.js
Last active February 6, 2024 19:53
M5Stack Espruino initialization example
/*
Also, need to change in ILI9341pal.js:
var LCD_WIDTH = 320;
var LCD_HEIGHT = 240;
*/
BTN1 = D39
BTN2 = D38
BTN3 = D37
SPKR = D25
// Captive Portal - extending:
// https://gist.github.com/MaBecker/ae9dade26b44524e076ca19f5fd72fab
// Added form and post back to join network
var http = require('http');
var wifi = require('Wifi');
var dgram = require('dgram');
var dns_srv = dgram.createSocket('udp4');