Search found 3667 matches
- Mon Aug 22, 2022 7:13 pm
- Forum: General Discussion and Questions
- Topic: For pico port ntptime not standard?
- Replies: 19
- Views: 44578
Re: For pico port ntptime not standard?
Most of the C-Coded modules are controlled by the port's mpconfigport.h, the global py/mpconfig.h and eventually a board's mpconfigboard.h. py/mpyconfig.h has the defaults, which are use if not configured otherwise. py/mpconfig.h includes mpconfigport.hm, which in turn may include mpyconfigboard.h o...
- Sun Aug 21, 2022 8:02 pm
- Forum: Announcements and News
- Topic: MicroPython version 1.19 released
- Replies: 18
- Views: 100766
Re: MicroPython version 1.19 released
Indeed, dupterm is only enabled on device with network support, and MSC only for the Arduino Nano Connect device.
You may have to use a daily build to get dupterm at Pico_W.
You may have to use a daily build to get dupterm at Pico_W.
- Sun Aug 21, 2022 7:08 pm
- Forum: General Discussion and Questions
- Topic: Easy way to emulate str 'capitalize' function?
- Replies: 4
- Views: 5398
Re: Easy way to emulate str 'capitalize' function?
I would say no, given that memory is a scarce resource at micros. Because it is rarely requested and easy to implement.Adding it to MP? Nah, not sure there is a need when the upper trick works.
- Sun Aug 21, 2022 7:05 pm
- Forum: General Discussion and Questions
- Topic: For pico port ntptime not standard?
- Replies: 19
- Views: 44578
Re: For pico port ntptime not standard?
If a package is installed in the lib tree, does that not imply it is frozen or such? No. It just is pulled with "make submodules" or "git submodule update --init". To have it frozen, it must be mentioned in the manifest.py files applying to that specific board. Then it will be included while buildi...
- Sun Aug 21, 2022 4:40 pm
- Forum: General Discussion and Questions
- Topic: For pico port ntptime not standard?
- Replies: 19
- Views: 44578
Re: For pico port ntptime not standard?
ntptime.py is located in micropython/extmod, which is an unusual place. It should move to micropython-lib, now that the latter moved into the standard set of submodules. ntptime.py is included at some ports to the set of frozen bytecode. edit: looking through the build system, it is included for Pic...
- Sun Aug 21, 2022 7:40 am
- Forum: General Discussion and Questions
- Topic: OsError Errno 5 while working with I2C
- Replies: 1
- Views: 4451
Re: OsError Errno 5 while working with I2C
Error 5 indicates a communication problem. The reason could be: - wrong address - connections problems. For connection problems, check that - all four wires are place: GND, SDA, SCL and Vcc - there are pull-up resistors at SDA and SCL between SDA - Vcc and SDA - Vcc. - The levels match. The Pico run...
- Fri Aug 19, 2022 7:13 am
- Forum: General Discussion and Questions
- Topic: Check if UART write is complete?
- Replies: 7
- Views: 9137
Re: Check if UART write is complete?
I added uart.flush() for esp32 and mimxrt. These two behave consistent, in that uart.flush() returns after the last bit has been sent. Edit: Added for ESP8266 and STM32. For STM32 it is a dummy function, since STM32's uart,write() is unbufferd and returns only after the last byte has been sent. Edit...
- Thu Aug 18, 2022 7:58 pm
- Forum: General Discussion and Questions
- Topic: Check if UART write is complete?
- Replies: 7
- Views: 9137
Re: Check if UART write is complete?
So I have a first implementation for RP2040. Some pictures below. The test script is: from machine import UART, Pin u=UART(0, 9600) p2=Pin(2, Pin.OUT, value=0) def run(n=1, t=9999): p2(1) u.write("abcde"*n) print(u.flush(t)) p2(0) The code is at: https://github.com/robert-hh/micropython/tree/uart_fl...
- Thu Aug 18, 2022 4:42 pm
- Forum: General Discussion and Questions
- Topic: Check if UART write is complete?
- Replies: 7
- Views: 9137
Re: Check if UART write is complete?
I can implement that and check, whether it works well. After having it done for one ports, the other ports are easy. But it will take a while, if ever, before that goes into mainline. Until then you could use your own firmware versions. The feature is requested regularly e.g. by people dealing with ...
- Thu Aug 18, 2022 8:54 am
- Forum: Raspberry Pi microcontroller boards
- Topic: AttributeError: 'FrameBuffer' object has no attribute 'height'
- Replies: 2
- Views: 3163
Re: AttributeError: 'FrameBuffer' object has no attribute 'height'
I made a change to the driver, referencing self.height instead.