3.38 Smart Control Panel
3.38.1 Overview
Combined web buttons and wireless control, this control panel in this project is able to control modules and read module values as well.
3.38.2 Test Code
3.38.2.1 Build Code
There are two ways to upload the code: directly open the code file we provide; or manually build blocks.
Directly open the code file we provide:
Click
and choose Load from your computer

We have already downloaded the codes on computer desktop, so open the file and choose
7-38-intelligentConsole.sb3
Manually build blocks:
Initialize wifi and OLED module, set the name and passwords of the wifi
Set the values to be displayed through block

Define button names and functions through block

Complete Test Code

3.38.2.2 Test Result
Upload the code, and the OLED shows the IP address after connecting to wifi.
Connect your computer/mobile phone and ESP32 to the same wifi, and you can access the IP address to see the control page through your device.
