https://github.com/tkomde/beetlec-html-mod
Joystick UI for beetleC
https://github.com/tkomde/beetlec-html-mod
beetlec m5stickc
Last synced: 9 months ago
JSON representation
Joystick UI for beetleC
- Host: GitHub
- URL: https://github.com/tkomde/beetlec-html-mod
- Owner: tkomde
- Created: 2019-10-12T04:12:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T04:17:26.000Z (over 6 years ago)
- Last Synced: 2025-01-22T12:45:32.963Z (over 1 year ago)
- Topics: beetlec, m5stickc
- Language: C
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beetleC HTML Mod
Mod from [official sample](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/beetleC/stickC/beetleC)

- 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