Search found 2754 matches
- Tue Oct 20, 2020 6:41 am
- Forum: General Discussion and Questions
- Topic: A correct example of using utime.ticks_add and utime.ticks_diff
- Replies: 4
- Views: 2414
Re: A correct example of using utime.ticks_add and utime.ticks_diff
It seems to me that the official manual is not fully clear, especially for new users. I agree it's not the most obvious explanation of what's going on. Before I raise a bug, can you explain what you think was specifically unclear or how you'd improve it? (i.e. is the issue that it's confusing why y...
- Tue Oct 20, 2020 6:38 am
- Forum: Development of MicroPython
- Topic: problem using I2C (scl='B10', sda='B11') with STM32WB55 port
- Replies: 6
- Views: 3844
Re: problem using I2C (scl='B10', sda='B11') with STM32WB55 port
In STM32WB55 datasheet document, I2C3_SCL is contained int he list of alternate functions of PB10 pin. You're using SoftI2C so the alternate function doesn't matter (that only applies to using the hardware I2C peripheral). Do you have an oscilloscope that you can hook up to B10? FWIW, you can use t...
- Tue Oct 20, 2020 6:25 am
- Forum: General Discussion and Questions
- Topic: Assigning to an objects __dict__: TypeError
- Replies: 6
- Views: 4279
Re: Assigning to an objects __dict__: TypeError
Since __setattr__ support looks like it’s coming soon and I’ve rewritten my code to use properties anyway (which bloats up the number of lines, but works), I’ll just wait for that to arrive. I don't think there's any __setattr__ changes currently in the pipeline? However there was a big improvement...
- Tue Oct 20, 2020 6:22 am
- Forum: ESP32 boards
- Topic: Save data to flash
- Replies: 4
- Views: 3783
Re: Save data to flash
Yes, the "+" in "w+b" is "update" mode which avoids the file being truncated.
- Tue Oct 20, 2020 6:18 am
- Forum: ESP32 boards
- Topic: asyncio.run on unix port
- Replies: 6
- Views: 2566
Re: asyncio.run on unix port
My guess is that uraich has previously installed v2 from micropython-lib and it's in ~/.micropython/lib and being used preferentially over the frozen v3 code.
- Tue Oct 20, 2020 6:08 am
- Forum: Programs, Libraries and Tools
- Topic: Encryption Libraries
- Replies: 2
- Views: 1472
Re: Encryption Libraries
The ESP32 port includes encryption support as part of its implementation of SSL. You can access this with the "ssl" module. Is your goal to just encrypt the data as it's being transmitted (in which case SSL or HTTPS might be sufficient), or do you actually need to generate an encrypted file that can...
- Thu Oct 01, 2020 1:02 pm
- Forum: General Discussion and Questions
- Topic: [STM32 H7 dual processor series]
- Replies: 7
- Views: 4034
Re: [STM32 H7 dual processor series]
What changes do I have to make to generate a library that can be linked to projects for specific boards? There's an updated README.md in that PR with some details. The relevant section is The libmicropython build additionally supports cross compilation, and you can use the `CROSS_COMPILE` and `CFLA...
- Thu Oct 01, 2020 12:59 pm
- Forum: Other Boards
- Topic: How to add modules like ujson, upip and etc?
- Replies: 12
- Views: 6093
Re: How to add modules like ujson, upip and etc?
It sounds like maybe your fork is based on an older version of MicroPython (before we added string compression via the MP_ERROR_TEXT macro) but you've grabbed the very latest version of modujson.c ?
- Thu Oct 01, 2020 12:54 pm
- Forum: Announcements and News
- Topic: UPDATED: New users post approval
- Replies: 33
- Views: 270940
Re: UPDATED: New users post approval
It doesn't matter too much. If in doubt use the General Discussion section at viewforum.php?f=2
- Thu Oct 01, 2020 12:52 pm
- Forum: ESP32 boards
- Topic: NotImplementedError: Redirects not yet supported
- Replies: 5
- Views: 3303
Re: NotImplementedError: Redirects not yet supported
There have been some attempts to add redirection support to urequests. None of them are merged yet, however you could try copying their implementations. See https://github.com/micropython/micropython-lib/pull/398 https://github.com/micropython/micropython-lib/pull/378 https://github.com/micropython/...