Skip to content
This repository has been archived by the owner on Dec 15, 2019. It is now read-only.

building per instructions #14

Open
johncblacker opened this issue Feb 27, 2019 · 0 comments
Open

building per instructions #14

johncblacker opened this issue Feb 27, 2019 · 0 comments

Comments

@johncblacker
Copy link

I rebuilt my MP/ESP32 firmware following your instructions regarding using "links" but without modifying the import statements in the modules, it won't compile and run. For example, here is what happens:
---------------------------------- output log below ------------------------------------

from examples.duplex import test
test.main()
Traceback (most recent call last):
File "", line 1, in
File "examples/duplex/test.py", line 22, in main
File "sx127x/config.py", line 21, in get_controller
File "sx127x/controller/controller_esp_ttgo_lora_oled.py", line 56, in init
File "sx127x/controller/display_ssd1306_i2c.py", line 19, in init
File "display/ssd1306.py", line 99, in init
File "display/ssd1306.py", line 36, in init
File "display/ssd1306.py", line 61, in init_display
File "display/ssd1306.py", line 104, in write_cmd
OSError: [Errno 19] ENODEV
------------------------------- end of output log paste -----------------------------------
Now, it's very possible that I did something wrong.
On another note, now that these modules are "builtin" so to speak, one is going to have to create new modules and put them somewhere if changes are required or desired (for example, if I wanted to use a ST7735 instead of the oled display). At this point, there is no /lib directory, so it would have to be created with whatever modules require changing and the new modules (ST7735.PY, etc.).
I guess that at this point, I'm not enamored with this approach. I prefer to have a /lib containing the modules and that way changes can be made. I suppose that I could have used links to my running version wherein I have a display, sx127x/controller, examples/duplex directories. I think the duplex directory is unnecessary and the necessary programs put into the examples directory. I think I'll try to put together a package which can be installed via upip. I'll put driver files for ST7735 and ILI9341 displays and add constants that will result in the correct drivers being imported.

Strange, but post-build umqtt isn't there, don't know what happened to it. The directory is in modules, but it didn't get included!

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

No branches or pull requests

1 participant