russhughes / st7789_mpy

Fast MicroPython driver for ST7789 display module written in C
Other
531 stars 107 forks source link

[resolved]"Clone this module alongside the MPY sources: $ git clone ..." ??? #30

Closed picpic020960 closed 3 years ago

picpic020960 commented 3 years ago

Bonjour Russ , I try to compile st7789_mpy module with cmake micropython version. cmake micropython is OK but for clone st7789_mpy repo I don't know where : what folder ? new folder ? frozen_mpy ? what is 'user modules directory' ? Thank's for help Regards

russhughes commented 3 years ago

cd your_directory_you_want_to_use git clone https://github.com/micropython/micropython.git git clone https://github.com/russhughes/st7789_mpy.git

Making both repos subdirectories of the same directory for example: /home/russ/micropython /home/russ/st7789_mpy

The 'user modules directory' can be used when you have several C external modules you want to include at the same time. You could with the old make build system (not sure if this works with the cmake build system) create a directory and place several modules in it . You could then specify the directory as the user modules directory and the build system would include each of the modules.

for example: /home/russ/my_micropython-modules/st7789_mpy /home/russ/my_micropython-modules/ili9342c_mpy

picpic020960 commented 3 years ago

Thanks Russ no errors but no results :

MicroPython v1.14-159-g1a2ffda-dirty on 2021-04-14; ESP32 module with ESP32 Type "help()" for more information.

help('modules') main framebuf uasyncio/lock urandom _boot gc uasyncio/stream ure _onewire inisetup ubinascii uselect _thread machine ubluetooth usocket _uasyncio math ucollections ussl _webrepl micropython ucryptolib ustruct apa106 neopixel uctypes usys btree network uerrno utime builtins ntptime uhashlib utimeq cmath onewire uheapq uwebsocket dht uarray uio uzlib ds18x20 uasyncio/init ujson webrepl esp uasyncio/core uos webrepl_setup esp32 uasyncio/event upip websocket_helper flashbdev uasyncio/funcs upip_utarfile Plus any modules on the filesystem

and in the make log :

Including User C Module(s) from ../../../../st7789_mpy/st7789/micropython.cmake Found User C Module(s): usermod_st7789

how to debug ?

Sorry

question : where from the compile date '2021-04-14' ? NB : flashed with "idf.py flash"

[edit] : ok , confused between build and GENERIC_build with idf.py flash Thanks Russ.