Skip to content

Help Wiring

alvaoze edited this page Jun 27, 2024 · 1 revision

Signal helping wiring

This function allows turning on the LED of the Hardsploit pin corresponding to the interface entered as a parameter.

Usage:

HardsploitAPI().signal_helping_wiring(signal_number_or_name)

Signals name

Module Signals name
SPI CS | SPI_CLK | MOSI | MISO
I2C I2C_CLK | SDA | MOSI | MISO
UART TX | RX
SWD SWD_CLK | SWD_IO

Examples:

HardsploitAPI().signal_helping_wiring("A0")
HardsploitAPI().signal_helping_wiring("A1")
HardsploitAPI().signal_helping_wiring("A2")
...
HardsploitAPI().signal_helping_wiring("A31")

HardsploitAPI().signal_helping_wiring("D0")
HardsploitAPI().signal_helping_wiring("D1")
...
HardsploitAPI().signal_helping_wiring("D15")

HardsploitAPI().signal_helping_wiring("RX")
HardsploitAPI().signal_helping_wiring("MOSI")
...

Set custom value wiring LED

This function allows turning on/off LEDs on the Hardsploit pin.

Usage:

set_wiring_leds(PortH PortG PortF PortE PortD Portc PortB PortA)

HardsploitAPI().set_wiring_leds(0xFF00FFFFFF00FFFF)

All LEDs on each port are:

Port Leds
A ON
B ON
C OFF
D ON
E ON
F ON
G OFF
H ON
Clone this wiki locally