2 Commits

Author SHA1 Message Date
Pol Henarejos cd5fd56a1d Version 1.2.1
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2025-11-26 13:23:27 +01:00
Pol Henarejos 7c2f454592 Add reboot command, to normal or bootsel mode.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2025-11-26 13:23:05 +01:00
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -362,3 +362,7 @@ class PicoKey:
logger.debug(f"Setting secure boot: bootkey_index={bootkey_index}, lock={lock}")
data = bytes([bootkey_index & 0xFF, 1 if lock else 0])
self.send(0x1C, cla=0x80, p1=0x02, data=data)
def reboot(self, bootsel: bool = False):
logger.debug("Rebooting device into BOOTSEL mode" if bootsel else "Rebooting device into normal mode")
self.send(0x1F, cla=0x80, p1=0x01 if bootsel else 0x00)
+1 -1
View File
@@ -18,4 +18,4 @@
*/
"""
__version__ = "1.2"
__version__ = "1.2.1"