Pycom

Provide core for pycom devices.

class mauzr.platform.pycom.Core

Bases: object

Manage program components on pycom platforms.

add_context(context)

Add a context to be managed by this core.

Parameters:context (object) – Unit to be added
clean()

Free memory.

static logger(name)

Create a logger instance.

Parameters:name (object) – Name of the caller that wants to receive the logger.
Returns:Logger
Return type:object
run(reset_on_exception)

Run the program. This blocks until the program is finished.

Parameters:reset_on_exception (bool) – If true the machine.reset() is called if an exeption other than KeyboardInterrupt if raised.
Raises:Exception – If the program fails for some reason.