backup codes
This commit is contained in:
13
src/main.c
13
src/main.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user