tomvik / Pi-4WD-Smart-Robot

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

[GPIOProxy] Make GPIOProxy class a singleton. #9

Closed github-actions[bot] closed 9 months ago

github-actions[bot] commented 9 months ago

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


        if (self.pwm is not None):
            self.pwm.ChangeDutyCycle(dutycycle)

# TODO: [GPIOProxy] Make GPIOProxy class a singleton.
class GPIOProxy():
    BCM = GPIO.BCM if _rpiLoaded else 'BCM'
github-actions[bot] commented 9 months ago

Closed in 7761d9da5b40e39b85714cec50399b2e07915227