diff --git a/adafruit_pycamera/__init__.py b/adafruit_pycamera/__init__.py index 89bb283..bd76ad9 100644 --- a/adafruit_pycamera/__init__.py +++ b/adafruit_pycamera/__init__.py @@ -63,9 +63,9 @@ _AW_CARDDET = const(8) _AW_SDPWR = const(9) _AW_DOWN = const(15) -_AW_LEFT = const(14) +_AW_RIGHT = const(14) _AW_UP = const(13) -_AW_RIGHT = const(12) +_AW_LEFT = const(12) _AW_OK = const(11) _NVM_RESOLUTION = const(1) diff --git a/examples/camera/code.py b/examples/camera/code.py index ddb0d5e..179d66e 100644 --- a/examples/camera/code.py +++ b/examples/camera/code.py @@ -158,15 +158,15 @@ key = settings[curr_setting] if key: setattr(pycam, key, getattr(pycam, key) - 1) - if pycam.left.fell: - print("LF") + if pycam.right.fell: + print("RT") curr_setting = (curr_setting + 1) % len(settings) print(settings[curr_setting]) # new_res = min(len(pycam.resolutions)-1, pycam.get_resolution()+1) # pycam.set_resolution(pycam.resolutions[new_res]) pycam.select_setting(settings[curr_setting]) - if pycam.right.fell: - print("RT") + if pycam.left.fell: + print("LF") curr_setting = (curr_setting - 1 + len(settings)) % len(settings) print(settings[curr_setting]) pycam.select_setting(settings[curr_setting])