Search found 647 matches

by Damien
Tue Dec 16, 2014 12:06 pm
Forum: General Discussion and Questions
Topic: const() function
Replies: 17
Views: 31852

Re: const() function

Using const allows optimisation, but retains compatibility with Python semantics (as much as possible). The idea is that you want to substitute the constant value directly in your code. If you write some Python code that uses a (global) variable, then looking up that global variable is relatively ex...
by Damien
Wed Dec 10, 2014 11:49 pm
Forum: Hardware Projects
Topic: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Replies: 30
Views: 106139

Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)

Great! But as I understand from your post on the other thread, the call to send() is still blocking during transfert, so CPU is not availabe for other tasks. Am I right? Right. First step was to get DMA working, and main reason for that was to get uninterrupted transfers with interrupts enabled. Pr...
by Damien
Wed Dec 10, 2014 6:19 pm
Forum: Hardware Projects
Topic: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Replies: 30
Views: 106139

Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)

fma wrote:So, DMA usage is totally transparent?
Yes. If interrupts are enabled it uses DMA, otherwise it uses polling.
by Damien
Wed Dec 10, 2014 12:13 am
Forum: Other Boards
Topic: Error while building uPython for STM32F407 discovery board
Replies: 7
Views: 9446

Re: Error while building uPython for STM32F407 discovery boa

Downloading the latest micropython-master.zip file from micropython.org/download, and running make BOARD=STM32F4DISC in the stmhal directory works fine for me.

I suspect that your build process can't find arm-none-eabi-gcc. Is it in your path? Can you execute arm-none-eabi-gcc on the command line?
by Damien
Tue Dec 09, 2014 10:49 pm
Forum: MicroPython pyboard
Topic: data write speeds and broken SD cards
Replies: 36
Views: 36312

Re: data write speeds and broken SD cards

Answer: No, as this uses SDIO, SD card on the header pins would have to use SPI - SD card over SPI hast yet to be implemented. Right. The hardware has builtin SDIO support and the driver is designed around that. The pins are hardwired. It's not a priority for me, but if someone wants to submit a dr...
by Damien
Tue Dec 09, 2014 10:23 pm
Forum: Hardware Projects
Topic: Navigation pyskin - Board Design RFC
Replies: 46
Views: 39874

Re: Navigation pyskin - Board Design RFC

Lastest revision looks great! What next, off to the PCB house? :)
by Damien
Tue Dec 09, 2014 11:51 am
Forum: Kickstarter logistics for the Micro Python campaign
Topic: Pyboard for production - How many boards can you order?
Replies: 2
Views: 49261

Re: Pyboard for production - How many boards can you order?

You can use Micro Python for more than just hobby projects! If you are interested in many boards please contact us directly. We can provide 100s within a few days if needed. For more than that we can go to the manufacturer and it would be around 1 month lead time. If you want more than 10k units I s...
by Damien
Tue Dec 09, 2014 11:41 am
Forum: General Discussion and Questions
Topic: WeIO
Replies: 5
Views: 5827

Re: WeIO

It has a Cortex M0 coprocessor for the "real time HW interface". So the SoC itself is probably only doing high level stuff.
by Damien
Tue Dec 09, 2014 11:11 am
Forum: Hardware Projects
Topic: DMA, SPI and WS2812B
Replies: 5
Views: 8149

Re: DMA, SPI and WS2812B

All these things are possible. I think the DMA even includes an irq for transfer half complete. Could use select module to determine when transfer is complete (but that could be overkill for such a simple check). I consider exposing DMA as an object, since it has so many options, but I think it migh...
by Damien
Tue Dec 09, 2014 12:26 am
Forum: Hardware Projects
Topic: Navigation pyskin - Board Design RFC
Replies: 46
Views: 39874

Re: Navigation pyskin - Board Design RFC

Thanks blmorris, looks good! Here are some points regarding your design: We don't need to use X1-X4 for the servo control. Any IO with PWM capability will work just fine. But X1-X4 are the best to use because they connect to 1 timer with its 4 channels. Can you put a mounting hole in the bottom righ...