Skip to content

gpiozero.Servo() and OutputDevice(8) import or usage error??? #18

@OpenSourceIronman

Description

@OpenSourceIronman

https://gpiozero.readthedocs.io/en/stable/api_output.html#servo

Blazes-MacBook-Pro:v2020.0 blazesanders$ python3 Driver.py
DEBUG STATEMENTS ARE ON INSIDE Actuator.py CLASS
Actuator.py MESSAGE: WARNING: You are running code on Mac or PC (NOT a Raspberry Pi 4), thus hardware control is not possible.

DEBUG STATEMENTS ARE ON INSIDE Try/Catch ImportError in LASER.py CLASS
Try/Catch ImportError in LASER.py MESSAGE: WARNING - You are running code on Mac or PC (NOT a Raspberry Pi 4), thus hardware control is not possible.

DEBUG STATEMENTS ARE ON INSIDE Driver.py CLASS
DEBUG STATEMENTS ARE ON INSIDE Actuator.py CLASS
Traceback (most recent call last):
File "Driver.py", line 414, in
fluidActuatorList = [Actuator('R', RUM_PUMP, rumFlavorPins, "Rum Flavor Motor: Zjchao 202", Actuator.CW)]
File "/Users/blazesanders/Tapomatic/v2020.0/Actuator.py", line 143, in init
tempServoObject = Servo(pins[0]) #TODO REMOVE BECAUSE TO SIMPLE AN OBJECT
NameError: name 'Servo' is not defined

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions