Day 13: Website with buttons
In today’s experiment, the illustration of the website is even more sophisticated. There are now also control elements that permit much more comfortable control of the LED.
The structure of today’s experiment is no different from yesterday’s: An LED at pin D9, which can be controlled via the module. As an additional component, today’s door once again holds a resistor with 1 kΩ. If necessary, you can now reduce the brightness of an LED by switching two resistors in series.
The program: Day13_TCPServerProgmen
Today’s program saves the website a little differently from the preceding one. While the simple website was contained in the source text yesterday, the page is saved in a Progmem variable this time. This relieves the board’s SRAM and permits more complex display of websites. However, you are losing some overview of the page.
You can, however, view the HTML file in the Sketch folder and change it as required. By having the website converted to bytes on the website
and entering these into the program variable, you can generate a new website for your web server.