File tree 4 files changed +8
-9
lines changed
4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ extern "C" {
3
3
#include " pico/time.h"
4
4
#include " pico/bootrom.h"
5
5
}
6
+ #include " macros.h"
7
+ #include " pins_arduino.h"
6
8
7
9
// Allow user override of the LED mask
8
10
#ifndef USB_BOOT_LED_ACTIVITY_MASK
@@ -33,7 +35,7 @@ static void boot_double_tap_check() {
33
35
}
34
36
35
37
magic_location[0 ] = 0 ;
36
- reset_usb_boot (USB_BOOT_LED_ACTIVITY_MASK , 0 );
38
+ reset_usb_boot (digitalPinToPinName (LED_BUILTIN) , 0 );
37
39
}
38
40
39
41
class DoubleTap {
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ uint8_t getUniqueSerialNumber(uint8_t* name) {
91
91
}
92
92
93
93
void _ontouch1200bps_ () {
94
- reset_usb_boot (0 , 0 );
94
+ reset_usb_boot (digitalPinToPinName (LED_BUILTIN), 1 );
95
95
}
96
96
97
97
#endif
Original file line number Diff line number Diff line change @@ -3,11 +3,8 @@ extern "C" {
3
3
#include " pico/time.h"
4
4
#include " pico/bootrom.h"
5
5
}
6
-
7
- // Allow user override of the LED mask
8
- #ifndef USB_BOOT_LED_ACTIVITY_MASK
9
- #define USB_BOOT_LED_ACTIVITY_MASK 1
10
- #endif
6
+ #include " macros.h"
7
+ #include " pins_arduino.h"
11
8
12
9
// Doesn't make any sense for a RAM only binary
13
10
#if !PICO_NO_FLASH
@@ -33,7 +30,7 @@ static void boot_double_tap_check() {
33
30
}
34
31
35
32
magic_location[0 ] = 0 ;
36
- reset_usb_boot (USB_BOOT_LED_ACTIVITY_MASK , 0 );
33
+ reset_usb_boot (LED_BUILTIN , 0 );
37
34
}
38
35
39
36
class DoubleTap {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ uint8_t getUniqueSerialNumber(uint8_t* name) {
80
80
}
81
81
82
82
void _ontouch1200bps_ () {
83
- reset_usb_boot (0 , 0 );
83
+ reset_usb_boot (digitalPinToPinName (LED_BUILTIN), 1 );
84
84
}
85
85
86
86
#endif
You can’t perform that action at this time.
0 commit comments