archieve: FinalTerm 51pins moudle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user