archieve: FinalTerm 51pins moudle

This commit is contained in:
2025-05-29 14:16:27 +08:00
parent fd0fd805b5
commit b13f90b5b4
4 changed files with 98 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* @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);
}
}