You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.image.set_rotation(900) # internal camera is rotated 90 degrees
141
+
try:
142
+
frommposimportInputManager
143
+
indev=InputManager.list_indevs()[0]
144
+
indev.enable(False)
145
+
InputManager.unregister_indev(indev)
146
+
print("input disabled")
147
+
exceptExceptionase:
148
+
print(f"disabling indev got exception: {e}")
149
+
#self.image.set_rotation(900) # internal camera is rotated 90 degrees
142
150
# Apply saved camera settings, only for internal camera for now:
143
151
self.apply_camera_settings(self.scanqr_prefsifself.scanqr_modeelseself.prefs, self.cam, self.use_webcam) # needs to be done AFTER the camera is initialized
144
152
else:
@@ -166,7 +174,7 @@ def stop_cam(self):
166
174
# Power off, otherwise it keeps using a lot of current
167
175
try:
168
176
frommachineimportPin, I2C
169
-
i2c=I2C(1, scl=Pin(16), sda=Pin(21)) # Adjust pins and frequency
177
+
i2c=I2C(1, scl=Pin(38), sda=Pin(39)) # Adjust pins and frequency
170
178
#devices = i2c.scan()
171
179
#print([hex(addr) for addr in devices]) # finds it on 60 = 0x3C after init
0 commit comments