/* * @name: testPNP.c * @author: msksbr * @date: 2025-05-29 * @description: test PNP power supply. */ #include #include "../51pins/51pins.h" unsigned char currentChannel = 0; void main() { while (1) { P2 = 0x00; switch138(currentChannel); if (currentChannel == 7) { currentChannel = 0; } else { currentChannel++; } delay_ms(1); } }