1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 12:53:22 +00:00

Last commit for #10 to get the Overlay Manager implemented. i2c-1 still shows up as i2c-3, but everything should work. Will add new bug to investigate. Bumping rev to 0.2.0 as this is a big feature. Custom Overlay should work now

This commit is contained in:
Robert Wolterman
2016-07-16 17:33:09 -05:00
parent 44121ed5eb
commit e270080af8
5 changed files with 58 additions and 16 deletions

View File

@ -92,7 +92,10 @@ def _set_overlay_verify(name, overlay_path, config_path):
time.sleep(0.2)
# VERIFY
if name == "PWM0":
if name == "CUST":
# BLINDLY ACCEPT THAT IT LOADED
return 0
elif name == "PWM0":
if os.path.exists(PWMSYSFSPATH):
if DEBUG:
print("PWM IS LOADED!")
@ -149,9 +152,8 @@ def load(overlay, path=""):
elif overlay.upper() == "CUST" and _LOADED[overlay.upper()]:
print("Custom Overlay already loaded")
return 2
elif overlay.upper() == "CUST":
opath = OVERLAYINSTALLPATH + "/" + _OVERLAYS[overlay.upper()]
print("Custom Overlay not implemented yet")
elif overlay.upper() == "CUST" and not os.path.exists(path):
print("Custom Overlay path does not exist")
return 1
# SET UP THE OVERLAY PATH FOR OUR USE