Search found 29 matches

by miltmobley
Sun Jul 26, 2020 3:27 am
Forum: ESP32 boards
Topic: Big float in Micropython (ESP32)
Replies: 3
Views: 567

Re: Big float in Micropython (ESP32)

I just noticed there is also a "decimal" module in cpython which may do what you want, i.e. more than eight decimal places.
But if it's not in micropython,you would have to port it.
by miltmobley
Sun Jul 26, 2020 3:22 am
Forum: ESP32 boards
Topic: Big float in Micropython (ESP32)
Replies: 3
Views: 567

Re: Big float in Micropython (ESP32)

In cpython, this appears to require the bigfloat package to be installed. From Python docs, we have: "The bigfloat package is a Python wrapper for the GNU MPFR library for arbitrary-precision floating-point reliable arithmetic." If you really need such bigger numbers, you would have to port bigfloat...
by miltmobley
Sun Jul 26, 2020 2:50 am
Forum: Other Boards
Topic: Compile Btree on STM32
Replies: 9
Views: 1031

Re: Compile Btree on STM32

Here's two cents worth: If you are trying to compile a module for an STM32 processor, this is a cross-compile and you should not be accessing any Linux system header files in the build. Of course Linux would allow you to do something like set up symbolic links to make the linux source appear to be i...
by miltmobley
Sun Jul 26, 2020 2:36 am
Forum: Programs, Libraries and Tools
Topic: Build upython on stm32cube ide?
Replies: 3
Views: 615

Build upython on stm32cube ide?

1. Can micropython and its firmwares be built on STM32Cube IDE using an STM32F405xx (pyboard) processor configuration?
2. Is source available for the threading firmware?
3. In general, how does your firmware differ from the standard stm32 firmware provided by STM32Cube?
by miltmobley
Thu Apr 13, 2017 4:15 am
Forum: ESP32 boards
Topic: Selecting an ESP32 Port
Replies: 3
Views: 2999

Re: Selecting an ESP32 Port

Have you seen this? https://forum.pycom.io/topic/550/pycom-and-damien-george-join-forces-for-the-esp32 It mentions three pull requests to esp-idf repo to meet their requirements, and two to micropython-esp32 repo. As of today, the support for multiple boards pr is not in m*-esp32. There is also plat...
by miltmobley
Tue Mar 28, 2017 6:30 pm
Forum: Development of MicroPython
Topic: Zephyr status
Replies: 1
Views: 1463

Zephyr status

I just noticed new version of Micropython source has support for a Zephyr rtos port. Why did you chooses Zephyr over other rtos products? What is the status of the port? I see some support for uart and gpio. Are others being worked on? A quick scan of the Zephyr source shows "board support" for an x...
by miltmobley
Sat Jul 09, 2016 9:55 pm
Forum: General Discussion and Questions
Topic: How to add c driver to stm build
Replies: 3
Views: 2591

Re: How to add c driver to stm build

modujson and modusocket were just examples I thought might indicate something relevant to my need. Since original post I did a git pull, and noticed a comparatively new drivers file, dht.c. It exposes a single c function to the micropython layer, and the function is used in the esp8266 module, which...
by miltmobley
Wed Jul 06, 2016 11:02 pm
Forum: General Discussion and Questions
Topic: How to add c driver to stm build
Replies: 3
Views: 2591

How to add c driver to stm build

I want to make a driver in c/c++ and get it included in the stmhal build. What do I have to change? I see in mpconfigport.h: (1) There is a section: "#define MICROPY_PORT_BUILTIN_MODULES" (2) mp_modusocket is listed in the section (3) modusocket.c is listed in the Makefile (4) modusocket.o is built ...
by miltmobley
Mon May 09, 2016 8:28 pm
Forum: Development of MicroPython
Topic: Passing variables between C and Python
Replies: 12
Views: 10549

Re: Passing variables between C and Python

I see from timer.c how callbacks are called from irq.c, and how Python calls to methods of builtin classes implemented in c are handled, but I have a different requirement: I would like to use Python to call "module global functions" of c modules. In standard Python, a module (file) containing a cla...
by miltmobley
Mon May 09, 2016 6:41 pm
Forum: Drivers for External Components
Topic: Standard API for drivers?
Replies: 37
Views: 16025

Re: Standard API for drivers?

This stuff about properties and memory usage is pretty far off the OP's original topic, which was standard api's for devices/drivers. I am surprised to hear that a developer of a new port would have made, for example, an SPI device that did not have the same API as the standard, documented SPI devic...