Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ports/esp32:Add modesp32s3(special lcd_cam for esp32s3) #11880

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fvstory
Copy link

@fvstory fvstory commented Jun 27, 2023

esp32s3 has a lcd_cam peripheral, so I am interesting exposing it.
1.Now it can be compiled successfully.
2.Divided into three parts(I8080 RGB CAM), but just achieve the I8080 and RGB.
3.The I8080 just expose the tx_param and tx_color, remaining: I think use the MP to write like st7789.py and so on.
4.The RGB need use oct psram or not, but in most cases it need psram as GRAM. So I newly open a GENERIC_S3_GRAM_OCT to apply some special espidf DEFINE to improve the display effect.
5.I am an amateur player, and I have only finished some manuscripts. I hope interested friends can help it.

@fvstory fvstory force-pushed the modesp32s3 branch 5 times, most recently from c848436 to 65ba3be Compare June 28, 2023 09:54
@fvstory fvstory marked this pull request as draft June 28, 2023 09:56
@fvstory fvstory force-pushed the modesp32s3 branch 2 times, most recently from 1b91f5d to 68fd1aa Compare June 28, 2023 10:14
@fvstory fvstory closed this Jun 29, 2023
@fvstory fvstory reopened this Jun 29, 2023
@fvstory
Copy link
Author

fvstory commented Jun 29, 2023

Now, the test is ok.
`import esp32s3
from machine import Pin
import time
rgb = esp32s3.RGB(data = (Pin(17), Pin(16), Pin(15), Pin(7), Pin(6), Pin(21), Pin(0), Pin(46),
Pin(3), Pin(8), Pin(18), Pin(10), Pin(11), Pin(12), Pin(13), Pin(14)),
hsync = Pin(38), vsync = Pin(5), de = Pin(39), pclk_pin = Pin(9),
hsync_pulse_width =48, hsync_back_porch =40, hsync_front_porch =40,
vsync_pulse_width =3, vsync_back_porch =29, vsync_front_porch =13,
backlight = Pin(45), pclk = 10 * 1000 * 1000, width = 800, height = 480, num_fbs = 1,
use_bounce_buffer = True, use_psram = True,refresh_on_demand = False)

rgb.backlight_on()
import framebuf
buf = bytearray(800 * 480 * 2)
fbuf = framebuf.FrameBuffer(buf, 800, 480, framebuf.RGB565)
while True:
fbuf.fill(166000)
rgb.bitmap(0, 0, 800, 480, fbuf)
time.sleep(2)
fbuf.fill(16000)
rgb.bitmap(0, 0, 800, 480, fbuf)
time.sleep(2)
fbuf.fill(1600)
rgb.bitmap(0, 0, 800, 480, fbuf)
time.sleep(2)
fbuf.fill(25525)
rgb.bitmap(0, 0, 800, 480, fbuf)
time.sleep(2)`

Signed-off-by: fvstory <fv1016898007@qq.com>
@fvstory fvstory marked this pull request as ready for review June 29, 2023 14:03
@fvstory fvstory changed the title esp32:Add modesp32s3(special lcd_cam for esp32s3) ports/esp32:Add modesp32s3(special lcd_cam for esp32s3) Jun 29, 2023
@projectgus
Copy link
Contributor

This is an automated heads-up that we've just merged a Pull Request
that removes the STATIC macro from MicroPython's C API.

See #13763

A search suggests this PR might apply the STATIC macro to some C code. If it
does, then next time you rebase the PR (or merge from master) then you should
please replace all the STATIC keywords with static.

Although this is an automated message, feel free to @-reply to me directly if
you have any questions about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants