Electronics > Microcontrollers

ESP32 combining two scripts

<< < (4/4)

Glad you were able to figure it out! In general, if I can offer a bit of very unsolicited advice, I'd say your code could use a little refactoring :)

PSR B1257:
I'm glad the code is (finally) working at all, after I figured out, that I have forgotten a "server.on ......" subroutine  :palm:

To make the browser-layout a little more compact, I tried to arrange the switches side by side.
Therefore I changed one code line from "inline-block" to "inline":

--- Code: ---.switch {position: relative; display: inline; width: 120px; height: 68px}
--- End code ---

Would be too nice, if that had worked.
But now it looks like that:


--- Quote from: tooki on March 27, 2023, 07:24:20 am ---
I HIGHLY suggest creating an IO assignment spreadsheet for any ESP32 project that needs more pins than the few that are totally unencumbered. Paste an image of the ESP32 in the middle and scale it to match the cell sizes. (Basically, make a diagram similar to the one at the top of the link above, then add a column or two for your own signal names.)

--- End quote ---

My ESP32 pinout diagram is attached - for anyone who find it helpful. Compiled from the ESP32 TRM.


[0] Message Index

[*] Previous page

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod