hw_sim()

Checks if the controller is in simulation mode.

Returns True if the controller is simulated, else False.

Syntax

planetcnc.hw_sim()

Parameters

Parameter Type Description Comment
None

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
sim_mode = planetcnc.hw_sim()
print("Simulation mode:", sim_mode)

See also