Posts

Showing posts with the label YD-ESP32-S3-EYE

Turtle Graphics on ESP32-S3-EYE/CircuitPython

Image
In Python, turtle graphics provides a representation of a physical “turtle” (a little robot with a pen) that draws on a sheet of paper on the floor. It’s an effective and well-proven way for learners to encounter programming concepts and interaction with software, as it provides instant, visible feedback. It also provides convenient access to graphical output in general. py_turtle.py is a Python 3 script run on desktop to draw Rotated Squares using Turtle Graphics. (code copied from https://deborahrfowler.com/MathForVSFX/RotatedSquares.html ) # Turtle Exercise run on Desktop/Python 3 import turtle print("Turtle Exercise run on Desktop/Python 3") def drawSquare(t,size,angle): t.left(angle) halfsize = size * .5 t.pu() t.setpos(0,0) t.backward(halfsize) t.left(90) t.backward(halfsize) t.right(90) t.pd() for i in range(0,4): t.fd(size) t.left(90) def drawSquarePattern(t): t.color("bl...

YD-ESP32-S3-EYE/CircuitPython 8, control LCD and Camera.

Image
With CircuitPython 8.2.8 installed on YD-ESP32-S3-EYE ,  Here are exercises to access LCD and camera on YD-ESP32-S3-EYE . Exercise to test LCD/Color on LCD, cpyS3EYE_LCD_color.py . """ LCD/Color test on YD-ESP32-S3-EYE/CircuitPython 8.2.8 """ import os, sys import board import time import displayio import terminalio from adafruit_display_text import label display = board.DISPLAY #======================================= info = os.uname()[4] + "\n" + \ sys.implementation[0] + " " + os.uname()[3] + "\n" + \ "board.DISPLAY: " + str(display.width) + "x" + str(display.height) print("=======================================") print(info) print("=======================================") print() # Make the display context bgGroup = displayio.Group() display.show(bgGroup) bg_bitmap = displayio.Bitmap(display.width, display.height, 1) # with one color bg_palette = displayio.Palett...

Install CircuitPython firmware on YD-ESP32-S3-EYE using esptool

Image
Install CircuitPython 8.2.8 firmware on YD-ESP32-S3-EYE by VCC-GND Studio using esptool, run on Linux Mint 21.2, over Windows 11/VirtualBox. Power up in BOOTLOADER mode: - Press and hold BOOT button, connect USB. Visit CircuitPython Download Page , search and download for ESP32-S3-EYE. Download .BIN of CircuitPython 8. Check CHIP/FLASH ID: esptool.py --chip auto --port <PORT> chip_id esptool.py --chip auto --port <PORT> flash_id Erase Flash:: esptool.py --chip esp32s3 --port <PORT> erase_flash Flash Firmware in .BIN: esptool.py --chip esp32s3 --port <PORT> --baud 460800 write_flash -z 0x0 <.BIN> Disconnect and connect USB again. It will run in CircuitPython. Exercises of CircuitPython run on YD-ESP32-S3-EYE: ~  YD-ESP32-S3-EYE/CircuitPython 8, control LCD and Camera .

my dev. board - YD-ESP32-S3-EYE

Image
YD-ESP32-S3-EYE by VCC-GND Studio. The seller claim that it's compatible with Espressif  ESP32-S3-EYE . The seller claim that it provide the same as ESP32-S3-EYE. Related: ~  Install CircuitPython firmware on YD-ESP32-S3-EYE using esptool . ~  YD-ESP32-S3-EYE/CircuitPython 8, control LCD and Camera . ~  Turtle Graphics on ESP32-S3-EYE/CircuitPython