backup codes

This commit is contained in:
2025-12-20 22:10:50 +08:00
parent 29edad3437
commit e1d432bfab
4 changed files with 954 additions and 3 deletions

View File

@@ -14,6 +14,19 @@ void main(void) {
UART1_BRR2 = 0x00;
UART1_CR2 = 0x0C;
while(1) {
volatile uint8_t *ptr = (volatile uint8_t *)0x0230;
delay_ms(2000);
for(int i=0; i<16; i++) {
for(int k=0; k<16; k++) {
UART1_DR = *ptr++;
while(!(UART1_SR&0x80));
}
delay_ms(100);
PB_ODR ^= (1 << LED_PIN);
}
}
while(1) {
PB_ODR ^= (1 << LED_PIN);
UART1_DR = PB_ODR;