-
Notifications
You must be signed in to change notification settings - Fork 9
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
Building firmware requires extra knowledge #8
Comments
Didn't you get an error like this? |
That is another new change in the build system. |
I have successfully compiled with the latest IDF (checkout 5.0.4) and MicroPython ( LilyGo T-Display S3 with 320x170 OLED parallel
if you're interested, here's the module I modified and froze tdisplay.py """ LilyGo T-DISPLAY-S3 170x320 ST7789 display """
from machine import Pin, SPI, freq
import st7789
freq(240000000) # 240mhz clock
TFA = 0
BFA = 0
def Display(rotation=0, buffer_size=0, options=0):
LCD_POWER = Pin(15, Pin.OUT)
LCD_POWER.value(1)
return st7789.ST7789(
Pin(48, Pin.OUT),
Pin(47, Pin.OUT),
Pin(46, Pin.OUT),
Pin(45, Pin.OUT),
Pin(42, Pin.OUT),
Pin(41, Pin.OUT),
Pin(40, Pin.OUT),
Pin(39, Pin.OUT),
Pin(8, Pin.OUT),
Pin(9, Pin.OUT),
170,
320,
reset=Pin(5, Pin.OUT),
cs=Pin(6, Pin.OUT),
dc=Pin(7, Pin.OUT),
backlight=Pin(38, Pin.OUT),
rotation=rotation,
options=options,
buffer_size= buffer_size)
class Buttons():
def __init__(self):
self.name = "t-display-s3"
self.left = Pin(0, Pin.IN)
self.right = Pin(14, Pin.IN) |
Thank you so much @ubidefeo |
@whatdtech , did you manage? :) |
Yes |
The relative path for the make command didn't work for the USER_C_MODULES; I had to use an absolute
~/<path to st7789_mpy>
argumentI needed to supply a board argument: BOARD=GENERIC_S3_SPIRAM_OCT
the
sdkconfig.board
file in micropython/ports/esp32/boards/GENERIC_S3_SPIRAM_OCT/ needed editing to select 16MB:After that, I got a firmware.bin in the build-GENERIC_S3_SPIRAM_OCT folder that, after flashing, gave me a micropython REPL after connecting with putty.
I hope this helps other people having the same problem. I was building on a clean install of Ubuntu 22.04.
The text was updated successfully, but these errors were encountered: