Podcast
Questions and Answers
What is the purpose of the atexit.register(turn_off_motors)
statement?
What is the purpose of the atexit.register(turn_off_motors)
statement?
What is the purpose of the Raspi_MotorHAT.RELEASE
constant used in the lm.run()
and rm.run()
methods?
What is the purpose of the Raspi_MotorHAT.RELEASE
constant used in the lm.run()
and rm.run()
methods?
What is the purpose of the mh.getMotor(1)
and mh.getMotor(2)
statements?
What is the purpose of the mh.getMotor(1)
and mh.getMotor(2)
statements?
What is the purpose of the lm.setSpeed(150)
and rm.setSpeed(150)
statements?
What is the purpose of the lm.setSpeed(150)
and rm.setSpeed(150)
statements?
Signup and view all the answers
What is the purpose of the Raspi_MotorHAT(addr=0x6f)
statement?
What is the purpose of the Raspi_MotorHAT(addr=0x6f)
statement?
Signup and view all the answers
What is the purpose of the lm.run(Raspi_MotorHAT.FORWARD)
and rm.run(Raspi_MotorHAT.FORWARD)
statements?
What is the purpose of the lm.run(Raspi_MotorHAT.FORWARD)
and rm.run(Raspi_MotorHAT.FORWARD)
statements?
Signup and view all the answers
What is the purpose of the time.sleep(1)
statement?
What is the purpose of the time.sleep(1)
statement?
Signup and view all the answers
What is the purpose of the turn_off_motors()
function?
What is the purpose of the turn_off_motors()
function?
Signup and view all the answers
Why is the Raspi_MotorHAT
class imported from the Raspi_MotorHAT
module?
Why is the Raspi_MotorHAT
class imported from the Raspi_MotorHAT
module?
Signup and view all the answers
What is the purpose of the lm = mh.getMotor(1)
and rm = mh.getMotor(2)
statements?
What is the purpose of the lm = mh.getMotor(1)
and rm = mh.getMotor(2)
statements?
Signup and view all the answers