SunFounder ESP32 Starter Kit
In this circuit, IO14 is low by the default and will change to high when the button is pressed.
By programming IO26 to output low, after a 1k current limiting resistor (to protect the transistor), the S8550 (PNP
transistor) is allowed to conduct, thus allowing the LED to light up.
The only difference you will notice between this circuit and the previous one is that in the previous circuit the cathode
of the LED is connected to the collector of the S8050 (NPN transistor), while this one is connected to the emitter of
the S8550 (PNP transistor).
1.22. 5.6 Two Kinds of Transistors 81