The imp object is a singleton which provides methods that relate to the imp on which the code is running, whether it’s a physical one in a device, or a virtual imp, ie. an agent.
For functionality relating to the IO buses provided by the imp to communicate with and control peripheral devices, see the hardware object. For the functionality of the imp’s IO pins, see the Pin class.
The imp object has the following member methods:
The imp object has the following member properties:
The imp object also has the following deprecated member methods, which should not be used in new code, but are documented here as an aid to understanding and migrating old code: