Search found 348 matches

by blmorris
Tue Nov 03, 2015 3:05 pm
Forum: MicroPython pyboard
Topic: USB and Vin connected simultaneously
Replies: 5
Views: 7547

Re: USB and Vin connected simultaneously

I should add a bit of advice: if you want to set up your pyboard to fall back to an external power supply when USB is disconnected, you can use something called a "Diode-OR" circuit. Half of the diode-OR is already there; this is D1 which allows current to flow from USB VBUS to Vin, but not the othe...
by blmorris
Tue Nov 03, 2015 2:59 pm
Forum: MicroPython pyboard
Topic: USB and Vin connected simultaneously
Replies: 5
Views: 7547

Re: USB and Vin connected simultaneously

Hi, Does anyone know if there is a problem having both the USB cable and a Vin connected simultaneously? I tried it briefly and smelled smoke! Thanks, Bob Smoke is usually an indication of a problem, and in this case, sadly unsurprising :( The question now is where the smoke came from, and I can of...
by blmorris
Mon Nov 02, 2015 10:35 pm
Forum: Development of MicroPython
Topic: Stream read and write methods
Replies: 4
Views: 4992

Re: Stream read and write methods

I'm having second thoughts about creating a public mp_stream_read function from the existing stream_read. What I need is to copy data from an open stream or file object into a pre-allocated array in C. stream_read is written to return a python string object, if I use that then I would need to go thr...
by blmorris
Mon Nov 02, 2015 7:49 pm
Forum: Development of MicroPython
Topic: Stream read and write methods
Replies: 4
Views: 4992

Re: Stream read and write methods

Okay, thanks. I take it that the reason we don't have it yet is that it hasn't been needed. As I understand it, he have 'mp_stream_write()' as the publicly available function, which is wrapped inside of 'stream_write_method()', and this is what gets linked to mp_stream_write_obj. Creating a parallel...
by blmorris
Mon Nov 02, 2015 7:09 pm
Forum: Development of MicroPython
Topic: Stream read and write methods
Replies: 4
Views: 4992

Stream read and write methods

I'm going over the code for reading from and writing to a file / stream in my I2S driver, trying to clean it up and make it more consistent. While writing the code, I implemented file reading / I2S playback first; the following snippet was adapted from very similar code in 'py/stream.c': pyb_i2s_obj...
by blmorris
Mon Nov 02, 2015 5:52 pm
Forum: WiPy and CC3200 boards
Topic: Firmware version title and value Different
Replies: 3
Views: 3781

Re: Firmware version title and value Different

The difference in numbering is between the WiPy binary release and the current release tag for the overall MicroPython project. The WiPy is much newer, and tagging more frequent releases as issues are getting fixed; don't worry about the version numbers not tracking at this point. If you aren't plan...
by blmorris
Mon Nov 02, 2015 5:45 pm
Forum: MicroPython pyboard
Topic: How to create USB Host CDC
Replies: 29
Views: 32256

Re: How to create USB Host CDC

@neilh20 - That is very encouraging; I wouldn't feel up to trying to tackle it myself. I can say that I'll have an application for it whenever it is ready!

@dhylands - Thanks for the link, I had forgotten that discussion about getting USB Host mode up on the pyboard.

-Bryan
by blmorris
Mon Nov 02, 2015 3:44 am
Forum: MicroPython pyboard
Topic: How to create USB Host CDC
Replies: 29
Views: 32256

Re: How to create USB Host CDC

@neilh20 - Since you are working on USB Host CDC, is there any chance you are interested in Host MSC as well? This would be to allow the OTG Host to access the filesystem on a USB flash drive. I'm interested in this because of the work I am doing on I2S (Inter-IC-Sound). Audio files tend to be large...
by blmorris
Mon Nov 02, 2015 3:02 am
Forum: Other Boards
Topic: Olimex STM32-E407
Replies: 12
Views: 13814

Olimex STM32-E407

I was wondering if anyone was running or thinking about running MicroPython on the Olimex STM32-E407 dev board. I have a potential consulting project coming up; the customer is currently planning to use this board as their embedded controller, and I may assist with system integration and firmware de...
by blmorris
Sun Nov 01, 2015 5:43 pm
Forum: WiPy and CC3200 boards
Topic: SPI Slave mode
Replies: 4
Views: 4531

Re: SPI Slave mode

There was a productive discussion about a proposed API for I2C and SPI slave modes starting here: https://github.com/micropython/micropython/issues/1430#issuecomment-151321274 It would probably be good to open a new issue specifically for that so the details don't get lost at the bottom of a _very_ ...