Search found 2754 matches

by jimmo
Mon Jun 27, 2022 12:53 pm
Forum: Announcements and News
Topic: MicroPython version 1.19 released
Replies: 18
Views: 99662

Re: MicroPython version 1.19 released

RobH wrote:
Sun Jun 26, 2022 6:02 pm
I'm afraid there is still (or again) something wrong with the nightly build procedure. I've seen several source updates since 1.19.1-33, but no more nightly builds for the boards I regularly refresh (a.o. ESP32, PYB11).
Thanks, will investigate ASAP.
by jimmo
Mon Jun 27, 2022 5:42 am
Forum: General Discussion and Questions
Topic: bits to bytes
Replies: 58
Views: 23548

Re: bits to bytes

My head says you're right jimmo & it will be fine over lora but heart is saying 'you can't trust it, use chr/ord (where wysiwyg) instead' Maybe this will help you. >>> b=bytes((0x08, 0x50, 0xf0,)) >>> print(b) b'\x08P\xf0' >>> import binascii >>> print(f'0x{binascii.hexlify(b).decode()}') 0x0850f0 ...
by jimmo
Mon Jun 27, 2022 3:03 am
Forum: Programs, Libraries and Tools
Topic: mpr - Wrapper for MicroPython mpremote tool
Replies: 1
Views: 1424

Re: mpr - Wrapper for MicroPython mpremote tool

Others may be interested so read about and get it from https://github.com/bulletmark/mpr. Neat! It's true that the mpremote UI is very much based on the workflow that Damien (and I) use for developing MicroPython. For example there was some deliberation about whether it should be (for example) "mpr...
by jimmo
Mon Jun 27, 2022 2:38 am
Forum: Raspberry Pi microcontroller boards
Topic: Change the main program runtime
Replies: 7
Views: 2748

Re: Change the main program runtime

no, in this way I'm importing the other file but it doesn't change the code behaviour I need to find a proper way to have multiple script in the RP2040 and a main script that switch between them importing and executing are really the same thing. You can think of MicroPython as doing `import main` t...
by jimmo
Mon Jun 27, 2022 2:33 am
Forum: ESP32 boards
Topic: No such file or directory
Replies: 3
Views: 3305

Re: No such file or directory

MATTYGILO wrote:
Sat Jun 25, 2022 4:30 pm
Did you get a solution to this?
My guess would be that the wrong IDF version has been checked out. See the instructions at https://github.com/micropython/micropyt ... nvironment
by jimmo
Mon Jun 27, 2022 2:32 am
Forum: MicroPython pyboard
Topic: Issues with data-logging on Pyboard
Replies: 5
Views: 24067

Re: Issues with data-logging on Pyboard

And when you say it is fragile, are you referring to the inability to read/write from USB while the Pyboard is busy, or something else? The simple answer is that USB Mass Storage was never designed to have what is essentially a USB stick that modifies its blocks at runtime. The host drivers on your...
by jimmo
Mon Jun 27, 2022 2:26 am
Forum: Raspberry Pi microcontroller boards
Topic: Reading ADC value at Runtime and callback functions based on voltage level
Replies: 6
Views: 2453

Re: Reading ADC value at Runtime and callback functions based on voltage level

Ok, made some progress with multithread I would be very careful about mixing asyncio and thread, and also any situation where you run the async event loop just for a short segment of the program is likely to cause confusion. I don't see any parts of this program that benefit from thread -- it would...
by jimmo
Mon Jun 27, 2022 2:22 am
Forum: Pyboard D-series
Topic: external interrupts on the D series board
Replies: 3
Views: 22607

Re: external interrupts on the D series board

So I'm wondering how to access some of the many interrupt channels available on the STM32F722IEK microcontroller? Not an expert on STM32 peripherals, but I thought there was a limit of 16 GPIOs connected to the EXTI on most of the F family? Is that incorrect? From the F722 reference manual: The ext...
by jimmo
Mon Jun 27, 2022 2:16 am
Forum: General Discussion and Questions
Topic: bits to bytes
Replies: 58
Views: 23548

Re: bits to bytes

So no easy way to get b'40 80' ? Seems to me python is being as slippery with octal/hex here as it sometimes is with types? Python's rules for printing bytes (or bytearrays) is to show the character if it's printable, otherwise the escape sequence. The actual data is correct though, and if you send...
by jimmo
Fri Jun 24, 2022 12:37 am
Forum: ESP32 boards
Topic: ESP32_BLE - How to get message
Replies: 1
Views: 1213

Re: ESP32_BLE - How to get message

could you please help me get the message in main.py? I would like to further use the message I get via ble. This code: ble = BLE("ESP32") print(ble.get_message()) won't work because it will just run immediately. You need to wait until there is a message before you can call get_message. I highly rec...