tomvik / Pi-4WD-Smart-Robot

Yahboom Raspberry Pi-4WD smart robot from scratch
MIT License
0 stars 0 forks source link

Change print order, so the function name goes first. #13

Open github-actions[bot] opened 6 months ago

github-actions[bot] commented 6 months ago

https://github.com/tomvik/Pi-4WD-Smart-Robot/blob/bdda1f302c748eef59746c36f1bdc932f89ac0ba/Python/src/RPI/GPIOProxy.py#L13


    _rpiLoaded = False
    print('This platform does not support RPi.GPIO... Will mock it instead.')

# TODO: Change print order, so the function name goes first.
class PWMProxy():
    def __init__(self, channel, frequency, debug=False):
        self.pwm = GPIO.PWM(channel, frequency) if _rpiLoaded else None