File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
CircuitPython_ESP32_Camera/esp32-s3-eye-adafruitio-and-lcd Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: Unlicense
4
4
5
5
"""
6
- Show the live camera image on the viewfinder, then upload to adafruit IO when the 'BOOT' button is pressed.
6
+ Show the live camera image on the viewfinder, then upload to adafruit IO when
7
+ the 'BOOT' button is pressed.
7
8
"""
8
9
9
- import esp32_camera
10
- from terminalio import FONT
11
- import board
12
- import displayio
13
- import busio
14
- import struct
15
- import adafruit_requests
16
- import wifi
10
+ import binascii
17
11
import ssl
18
- import socketpool
19
- import keypad
12
+ import struct
13
+
14
+ from adafruit_io .adafruit_io import IO_MQTT
15
+ import adafruit_minimqtt .adafruit_minimqtt as MQTT
20
16
import board
21
17
import dotenv
22
- import binascii
18
+ import esp32_camera
19
+ import keypad
20
+ import socketpool
21
+ import wifi
23
22
24
23
shutter_button = keypad .Keys ((board .BOOT ,), value_when_pressed = False )
25
24
30
29
31
30
pool = socketpool .SocketPool (wifi .radio )
32
31
33
- import adafruit_minimqtt .adafruit_minimqtt as MQTT
34
- from adafruit_io .adafruit_io import IO_MQTT
35
-
36
32
print ("Connecting to Adafruit IO" )
37
33
mqtt_client = MQTT .MQTT (
38
34
broker = "io.adafruit.com" ,
You can’t perform that action at this time.
0 commit comments