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 33# SPDX-License-Identifier: Unlicense
44
55"""
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.
78"""
89
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
1711import 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
2016import board
2117import dotenv
22- import binascii
18+ import esp32_camera
19+ import keypad
20+ import socketpool
21+ import wifi
2322
2423shutter_button = keypad .Keys ((board .BOOT ,), value_when_pressed = False )
2524
3029
3130pool = socketpool .SocketPool (wifi .radio )
3231
33- import adafruit_minimqtt .adafruit_minimqtt as MQTT
34- from adafruit_io .adafruit_io import IO_MQTT
35-
3632print ("Connecting to Adafruit IO" )
3733mqtt_client = MQTT .MQTT (
3834 broker = "io.adafruit.com" ,
You can’t perform that action at this time.
0 commit comments