Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.3 KB

GpiosState.md

File metadata and controls

32 lines (23 loc) · 1.3 KB

GpiosState

State of the simulated LEDs, buttons and switches on an IoT or embedded board model. Each group (led, button, switch) has one or more banks, and each bank is a list of bits: 1 is on (pressed, lit), 0 is off. Only board models that wire these up report them; phones (iOS and Android) do not.

Properties

Name Type Description Notes
led GpioStateDefinition [optional]
button GpioStateDefinition [optional]
switch GpioStateDefinition [optional]

Example

from corellium.models.gpios_state import GpiosState

# TODO update the JSON string below
json = "{}"
# create an instance of GpiosState from a JSON string
gpios_state_instance = GpiosState.from_json(json)
# print the JSON string representation of the object
print(GpiosState.to_json())

# convert the object into a dict
gpios_state_dict = gpios_state_instance.to_dict()
# create an instance of GpiosState from a dict
gpios_state_from_dict = GpiosState.from_dict(gpios_state_dict)

[Back to Model list] [Back to API list] [Back to README]