Search found 15 matches

by miltmobley
Thu Apr 13, 2017 4:15 am
Forum: ESP32 boards
Topic: Selecting an ESP32 Port
Replies: 3
Views: 1589

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: 788

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: 1388

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: 1388

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: 5181

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: 36
Views: 7945

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...
by miltmobley
Tue Apr 05, 2016 2:40 am
Forum: The MicroPython pyboard
Topic: how to use usb port for user data
Replies: 4
Views: 1690

Re: how to use usb port for user data

Thanks for your help, I will try the options you suggested. My actual goal is to have the pyboard control the sample rate of an attached sensor, possibly filter the data and push it to subscribers. I first thought of using the usb port for testing at least, but the eventual device would be autonomou...
by miltmobley
Mon Apr 04, 2016 8:11 pm
Forum: The MicroPython pyboard
Topic: how to use usb port for user data
Replies: 4
Views: 1690

Re: how to use usb port for user data

Would something like this work? import pyb import select sensor = Sensor() # I have to implement this def push_up(usb, sensor): usb.setinterrupt(-1) while True: select.select([usb, sensor], [], []) if usb.any(): sensor.write(usb.read(256)) # pass command to sensor if sensor.any(): usb.write(sensor.r...
by miltmobley
Mon Apr 04, 2016 6:56 pm
Forum: The MicroPython pyboard
Topic: how to use usb port for user data
Replies: 4
Views: 1690

how to use usb port for user data

I want to forward sensor data to a pc host, and thought it would be possible to use the usb port to do so. But there are problems: repl apparently owns the usb port, at least if i open /dev/ttyACM0 on the host. If i run one of the leds tutorials that loops with short delays, the repl output is not u...
by miltmobley
Thu Mar 17, 2016 3:56 am
Forum: General Discussion and Questions
Topic: MODBUS implementation
Replies: 7
Views: 3605

Re: MODBUS implementation

All I know about modbus i read on wikipedia. But it appears to be a command and control protocol that can be used over serial links, with some computer being the master and your pyboard being a slave. You would have to implement a monitor program to run on the pyboard that would continuously wait fo...