// main.c from CH552oneClickCompiler // RR20210807 002 change flash rate and pins // 003 CHANGE NUMBERING TO 10-17 & 30-35 typedef unsigned char *PUINT8; typedef unsigned char __xdata *PUINT8X; typedef const unsigned char __code *PUINT8C; typedef unsigned char __xdata UINT8X; typedef unsigned char __data UINT8D; #include "CH554.h" #include "debug.h" uint16_t wait = 100; uint8_t i; // Port 1.0 - 1.7 #define LED_PIN10 0 SBIT(LED10, 0x90, LED_PIN10); #define LED_PIN11 1 SBIT(LED11, 0x90, LED_PIN11); #define LED_PIN12 2 SBIT(LED12, 0x90, LED_PIN12); #define LED_PIN13 3 SBIT(LED13, 0x90, LED_PIN13); #define LED_PIN14 4 SBIT(LED14, 0x90, LED_PIN14); #define LED_PIN15 5 SBIT(LED15, 0x90, LED_PIN15); #define LED_PIN16 6 SBIT(LED16, 0x90, LED_PIN16); #define LED_PIN17 7 SBIT(LED17, 0x90, LED_PIN17); // Port 3.0 - 3.5 #define LED_PIN30 0 SBIT(LED30, 0xB0, LED_PIN30); #define LED_PIN31 1 SBIT(LED31, 0xB0, LED_PIN31); #define LED_PIN32 2 SBIT(LED32, 0xB0, LED_PIN32); #define LED_PIN33 3 SBIT(LED33, 0xB0, LED_PIN33); #define LED_PIN34 4 SBIT(LED34, 0xB0, LED_PIN34); #define LED_PIN35 5 SBIT(LED35, 0xB0, LED_PIN35); void main() { CfgFsys(); P1_MOD_OC = P1_MOD_OC |(1<