Skip to content

Commit f417055

Browse files
committed
fix for #18
1 parent 51309b9 commit f417055

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

adafruit_pycamera/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
_AW_CARDDET = const(8)
6464
_AW_SDPWR = const(9)
6565
_AW_DOWN = const(15)
66-
_AW_LEFT = const(14)
66+
_AW_RIGHT = const(14)
6767
_AW_UP = const(13)
68-
_AW_RIGHT = const(12)
68+
_AW_LEFT = const(12)
6969
_AW_OK = const(11)
7070

7171
_NVM_RESOLUTION = const(1)

examples/camera/code.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@
158158
key = settings[curr_setting]
159159
if key:
160160
setattr(pycam, key, getattr(pycam, key) - 1)
161-
if pycam.left.fell:
162-
print("LF")
161+
if pycam.right.fell:
162+
print("RT")
163163
curr_setting = (curr_setting + 1) % len(settings)
164164
print(settings[curr_setting])
165165
# new_res = min(len(pycam.resolutions)-1, pycam.get_resolution()+1)
166166
# pycam.set_resolution(pycam.resolutions[new_res])
167167
pycam.select_setting(settings[curr_setting])
168-
if pycam.right.fell:
169-
print("RT")
168+
if pycam.left.fell:
169+
print("LF")
170170
curr_setting = (curr_setting - 1 + len(settings)) % len(settings)
171171
print(settings[curr_setting])
172172
pycam.select_setting(settings[curr_setting])

0 commit comments

Comments
 (0)