Jim Mussared

Results 211 comments of Jim Mussared

This sounds good @mendenm ! I haven't followed the discussion thread in detail, but I get the impression that this should address many of the common issues that people run...

Thanks @tmountjr @ricksorensen is correct that not all boards have floating point enabled. The bigger issue though is that using floating point is very expensive in MicroPython because floats get...

> You seem to have access to some hardware Nope just any board running MicroPython: ``` t = time.ticks_us() ... do some code ... print(time.ticks_diff(time.ticks_us(), t)) ``` > catches corner...

> Interesting. I didn't think there was an separate time package given that there's already time in the standard image. The micropython-lib version _only_ implements strftime, is there a specific...

@pidou46 The documentation is incorrect. You must specify a connection, as the server might have multiple concurrent connections. If you want to automatically send to all connections, use subscription and...

@pidou46 You get the connection object when something connects to you. See e.g. https://github.com/micropython/micropython-lib/blob/master/micropython/bluetooth/aioble/examples/temp_sensor.py#L57

We've already done this in the [main repo](https://github.com/micropython/micropython/blob/master/.pre-commit-config.yaml) It works very well. I'm not entirely sure of the history of why the codeformat.py script in this repo has so much...

I think that's not a bad idea. But the simple answer is codeformat.py does more than just run uncrustify on .c files. Unfortunately we haven't been able to find a...

pre-commit support added in #[706](https://github.com/micropython/micropython-lib/pull/706) for black and ruff. As mentioned in the PR, I have preliminary support for gitlint too, will send a PR soon.

@paulhamsh Have you copied device.py and hid.py from this PR to the filesystem?