Read the Temperature of the PiMotion™ Amplifier¶
This Python code reads back the temperature of the amplifier.
import pilib
pm = pilib.Pidev('192.168.1.200') # make a connection to the PiMotion
temperature = pm.pidev_get_temperature() # read temperature
print ("The temperature of the amplifier is %.2f C" % (temperature))