Search found 65 matches
- Sat Sep 13, 2014 2:17 am
- Forum: MicroPython pyboard
- Topic: Can we drive headphones from the DAC+on board Op-Amp?
- Replies: 10
- Views: 11428
Re: Can we drive headphones from the DAC+on board Op-Amp?
I wrote a simple module to read and write wav files as arrays whilst I was playing with this feature, I'll try and find it again and post it here.
- Tue Sep 02, 2014 1:43 am
- Forum: General Discussion and Questions
- Topic: Assembler syntax
- Replies: 9
- Views: 8739
Re: Assembler syntax
Damien did indicate that the 32nd bit issue 'was fixable' in relation to a bug I raised which touched on the subject.
But I closed that bug (main subject of it wasn't a bug, but my miscomprehension) and didn't raise a specific one for this issue.
But I closed that bug (main subject of it wasn't a bug, but my miscomprehension) and didn't raise a specific one for this issue.
- Mon Sep 01, 2014 3:55 am
- Forum: General Discussion and Questions
- Topic: Assembler syntax
- Replies: 9
- Views: 8739
Re: Assembler syntax
The source code emitinlinethumb.c (or similar, I linked to it in the wiki) is the most useful documentation at the moment, it's easy to work out what instructions are implemented (but for what they do you largely have to look elsewhere). Implemented appears just to be a subset of instructions, inclu...
- Sun Aug 31, 2014 1:40 pm
- Forum: General Discussion and Questions
- Topic: Control Speed of DC Motor
- Replies: 25
- Views: 32184
Re: Control Speed of DC Motor
You can't use all pins concurrently for PWM with my module i.e. if you're testing to determine which you can, some of the pins use the same timer/channel combination as others, so if you've already allocated that combo and try to do so again the second pin that needs to use the combo can't, so it wi...
- Sun Aug 31, 2014 2:58 am
- Forum: General Discussion and Questions
- Topic: Control Speed of DC Motor
- Replies: 25
- Views: 32184
Re: Control Speed of DC Motor
Thanks! Didn't think what you'd added was likely to have broken it, and was planning to try to use some of the informational stuff you've added to timer to reduce size.
- Sat Aug 30, 2014 3:58 pm
- Forum: General Discussion and Questions
- Topic: Control Speed of DC Motor
- Replies: 25
- Views: 32184
Re: Control Speed of DC Motor
Yllumi, the pwm module I put up on the wiki worked when I last tried it, which was several weeks ago. It's possible that micropython has changed in the interim in ways that preclude it working on more recent builds. In particular dhyland has been working on pyb.timer, I note heading in a direction w...
- Sat Aug 30, 2014 3:52 pm
- Forum: General Discussion and Questions
- Topic: Assembler syntax
- Replies: 9
- Views: 8739
Re: Assembler syntax
and conflicts with python, Damien updated it to _and I put the sum of the knowledge I gained playing with the inline assembler up on the wiki, hoping someone else would contribute to the bits I couldn't fathom. There are some bits that are currently a little painful, particularly surrounding interac...
- Fri Aug 15, 2014 4:10 am
- Forum: MicroPython pyboard
- Topic: Controlling the output power of a pin (dimming external LED)
- Replies: 15
- Views: 15353
Re: Controlling the output power of a pin (dimming external
The call to timer with a frequency in my module is just to init it, which I couldn't work out how to do directly. As Dave says the frequency is changed later - the following code is a translation of what Damien does in C when you provide a frequency to init a timer, to calc values for prescaler and ...
- Fri Aug 15, 2014 3:59 am
- Forum: MicroPython pyboard
- Topic: Can we drive headphones from the DAC+on board Op-Amp?
- Replies: 10
- Views: 11428
Re: Can we drive headphones from the DAC+on board Op-Amp?
You can drive headphones or a piezo speaker directly from the dac's ... but the output is *almost* inaudible, ok for testing, no good for anything finished.
- Sun Aug 03, 2014 3:31 am
- Forum: MicroPython pyboard
- Topic: Interupts
- Replies: 3
- Views: 4718