Skip to content

tkomde/beetleC-HTML-Mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

beetleC HTML Mod

Mod from official sample

UI

  • Joystick UI
  • Weighted average calculation for smooth driving

Deployment procedure

Endocing html to page.h

gzip -c page.html | xxd -i > page.hex

Copy array to page.h.

Calcurate buffer size automatically.

Edit beetleC.ino.

esp_err_t controlPage(httpd_req_t *req) {
    httpd_resp_set_type(req, "text/html");
    httpd_resp_set_hdr(req, "Content-Encoding", "gzip");
    return httpd_resp_send(req, (const char *)ctlPage, sizeof ctlPage); // <-Edit!
}

Compile and transfer firmware

Acknowledgement

Following JoyStick library is embedded in the html with some modification. https://github.com/bobboteck/JoyStick

About

Joystick UI for beetleC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published