Files
51-microcontroller-homework/FinalTerm/src/test/testPNP.c
T

25 lines
429 B
C

/*
* @name: testPNP.c
* @author: msksbr
* @date: 2025-05-29
* @description: test PNP power supply.
*/
#include <REG52.H>
#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);
}
}