Search found 629 matches
- Sun Mar 03, 2019 8:16 pm
- Forum: ESP32 boards
- Topic: SPI as slave.
- Replies: 1
- Views: 3913
Re: SPI as slave.
Hello, Sorry, but I am new to upy. Is there an option to run SPI as slave on the ESP32? Or just use a the readinto basted on an interrupt? I have 2 ESP32, and would like to use SPI for them to talk together, as the HW SPI is super fast. I already have the master sending data, but do not know how to...
- Sun Mar 03, 2019 1:16 am
- Forum: General Discussion and Questions
- Topic: Dynamically add method to instance
- Replies: 7
- Views: 4627
Dynamically add method to instance
Obj.thing = function
?
Sent from my iPhone using Tapatalk Pro
?
Sent from my iPhone using Tapatalk Pro
- Sat Mar 02, 2019 9:44 pm
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
If you only had enough time to fully finish executing the “compute the beat” code or “flash leds”, I think you would put priority on “compute the beat” because at least you could record that a beat happened.
Is my assumption correct?
Sent from my iPhone using Tapatalk Pro
Is my assumption correct?
Sent from my iPhone using Tapatalk Pro
- Sat Mar 02, 2019 9:42 pm
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
In the interrupt, the only thing you want to do is sample the microphone and place the sample in a circular buffer.
Sent from my iPhone using Tapatalk Pro
Sent from my iPhone using Tapatalk Pro
- Fri Mar 01, 2019 4:23 pm
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
Post code you usedhdsjulian wrote:yeah this is the way i handled it. unfortunately the interrupt-timer can only go down to 1ms? or is there an option i'm missing?
Sent from my iPhone using Tapatalk Pro
- Fri Mar 01, 2019 4:50 am
- Forum: General Discussion and Questions
- Topic: 0MQ for MicroPython
- Replies: 3
- Views: 3716
Re: 0MQ for MicroPython
Dear all, I'm wondering if there are plans to support 0MQ in MicroPython. If not, can somebody provide a hint of how to do so? Best regards, CM ZeroMQ has to do with the underlying operating system and micropython is OS agnostic and in fact can run on bare metal. So the only question that makes sen...
- Fri Mar 01, 2019 3:58 am
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
This is bad architecture. The samples should be acquired by an interrupt and added to a buffer.hdsjulian wrote:i'm gonna loose a a quarter of all samples no matter how often i sample things.
By having an interrupt acquire the samples, you won’t ever miss one.
Sent from my iPhone using Tapatalk Pro
- Thu Feb 28, 2019 10:06 am
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
Do you need to actually read the data 1000 times per second or can you read chunks of samples?
Sent from my iPhone using Tapatalk Pro
Sent from my iPhone using Tapatalk Pro
- Thu Feb 28, 2019 3:31 am
- Forum: General Discussion and Questions
- Topic: Running two concurrent threads
- Replies: 16
- Views: 9066
Re: Running two concurrent threads
If this is normal audio, how is 10,000 samples per minute enough?
That’s 167 samples per second aka 167Hz.
Sent from my iPhone using Tapatalk Pro
That’s 167 samples per second aka 167Hz.
Sent from my iPhone using Tapatalk Pro
- Thu Feb 28, 2019 3:23 am
- Forum: General Discussion and Questions
- Topic: assembly / compile
- Replies: 2
- Views: 1971
Re: assembly / compile
No, not in general. On Pyboard you can use decorators to generate faster code (viper), which is translated into machine code) or even use assembly code, at least a subset of that. See also this section of the documentation: http://docs.micropython.org/en/latest/reference/speed_python.html http://do...