Search found 2577 matches

by Roberthh
Wed Apr 21, 2021 2:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 3
Views: 30

Re: #include "tusb.h" not working

AFAIK, I had to deinit these submodules first and then update them again.
by Roberthh
Wed Apr 21, 2021 1:54 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 3
Views: 30

Re: #include "tusb.h" not working

You have to update the submodules.
by Roberthh
Wed Apr 21, 2021 1:14 pm
Forum: Development of MicroPython
Topic: Attaching main.py into the build firmware.
Replies: 3
Views: 63

Re: Attaching main.py into the build firmware.

It should be possible, since one of the actions in _boot.py is creating the file system in flash with boot.py if required. The template for that boot.py is in the file inisetup.py, also located in modules.
by Roberthh
Wed Apr 21, 2021 11:31 am
Forum: General Discussion and Questions
Topic: Can't import from directory
Replies: 3
Views: 66

Re: Can't import from directory

Using the proper path separator is essential. Maybe you should put aside pycharm for a moment and use a simple terminal emulator like putty. Or use Thonny.
Without the proper file separator, Spielwiesen is not a directory, but just the part of a file name.
by Roberthh
Wed Apr 21, 2021 11:28 am
Forum: ESP32 boards
Topic: Some pins are in HIGH mode after reboot
Replies: 1
Views: 21

Re: Some pins are in HIGH mode after reboot

but sometimes all pins of one side from D27 to VP (d27 d26 d25 d33 d32 d35 d34 VN VP) show about 1v or 0,8v.
What's that?
Just floating pins in input mode.
by Roberthh
Wed Apr 21, 2021 8:39 am
Forum: General Discussion and Questions
Topic: how to raise a keyboard exception
Replies: 2
Views: 40

Re: how to raise a keyboard exception

In you C code, call:

mp_keyboard_interrupt();
by Roberthh
Wed Apr 21, 2021 8:33 am
Forum: General Discussion and Questions
Topic: Can't import from directory
Replies: 3
Views: 66

Re: Can't import from directory

You have to add the directory name "Spielwiesen" to sys.path.
sys.path.append("Spielwiesen")
then you can" import wifi".
Edit: Also: the path component separator is "/" not "\".
by Roberthh
Wed Apr 21, 2021 8:29 am
Forum: General Discussion and Questions
Topic: MPY files not working (1.14)
Replies: 1
Views: 37

Re: MPY files not working (1.14)

AFAIK, boot.py and main.py must not be pre-compiled. You can have a short main.py, which imports a large compiled code.
by Roberthh
Wed Apr 21, 2021 8:23 am
Forum: General Discussion and Questions
Topic: [Solved] rshell timed out or error in transfer to remote: b'F'
Replies: 6
Views: 274

Re: rshell timed out or error in transfer to remote: b'F'

Depends which build you made and if you comparing the right ones. The pre-built one you cite is the build for 1MByte devices, which excludes quite a few modules. If you made a full build for 2MB+ devices, then it may be larger. P.S.: If I build just now, I get 611904 bytes. So your size is indeed pr...
by Roberthh
Wed Apr 21, 2021 8:15 am
Forum: Development of MicroPython
Topic: Attaching main.py into the build firmware.
Replies: 3
Views: 63

Re: Attaching main.py into the build firmware.

You can still put your code into the esp32/modules directory. I do not recall the state at the moment, but AFAIK main.py will not be called from frozen bytecode. So that has to be in the flash file system. But main.py can call your modules. In modules there is also _boot.py, which is executed before...