shariltumin / esp32-cam-micropython-2022

MicroPython esp32-cam firmware with camera support compiled with esp-idf-4.4.0. Python script files for live streaming
MIT License
174 stars 33 forks source link

Neopixel and another modules #44

Open XuanMunoz opened 6 months ago

XuanMunoz commented 6 months ago

Hello, first: you are the best of all. I want to know the modules in the esp32, because I try to use neopixel but I do not have the module installed, I try to create the module by copying the "Neopixel" code manually to be able to use it, but again it shows me the error "no module named board" (for example) , in the same way other modules do not exist in this project or I assume they are named differently, can you help me?

Thanks so much for your big work

shariltumin commented 6 months ago

Hi,

If you want to learn all about MicroPython on an esp32 development board, I suggest you do it on a standard esp32 board, flashing it with the generic esp32 firmware from the micropython.org site.

The firmwares provided here have been customised to include the camera driver. Few "standard" modules were not included to save space or because they were not considered necessary for a camera-based application.

Now you can import any python module you like. For neopixel you can try neopixel.

Upload "neopixel.py" to your board and do the following:

from machine import Pin
from neopixel import NeoPixel

neo = NeoPixel(Pin(4), 15) # on GPIO4 and 15LEDs
# and the rest!