Search found 2015 matches

by jimmo
Tue Jun 04, 2019 10:30 pm
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 1190

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

Does anyone know how much speedup I can expect when using viper and native emitters w.r.t. pure Python for integer and string operations? It's hard to say because it depends so much on what the code is doing. So you've just got to measure it. In one project where I used it quite a lot it made the d...
by jimmo
Tue Jun 04, 2019 10:20 pm
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 1190

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

Can you post a follow-up to the bug?
That warning definitely sounds like it would be related to your problem.
by jimmo
Tue Jun 04, 2019 10:18 pm
Forum: Development of MicroPython
Topic: MicroPython external C modules
Replies: 3
Views: 937

Re: MicroPython external C modules

Are you able to post your code (e.g. to github).

Can you verify that your module is definitely being linked into the final firmware image (e.g. use nm or objdump).
by jimmo
Tue Jun 04, 2019 5:44 am
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 1190

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

Looks like a bug. I've raised https://github.com/micropython/micropython/issues/4829 with more info.

Unfortunately I don't understand the new native .mpy encoding well enough to send a PR.

Sorry I don't have a good workaround for you right now.
by jimmo
Tue Jun 04, 2019 1:30 am
Forum: ESP8266 boards
Topic: Mirabella Genio ESP8266 RGB light bulb
Replies: 3
Views: 812

Re: Mirabella Genio ESP8266 RGB light bulb

I am regretting my over-investment in ZigBee :)
by jimmo
Tue Jun 04, 2019 1:28 am
Forum: Programs, Libraries and Tools
Topic: how run IRQ() IN IRQ()
Replies: 12
Views: 1988

Re: how run IRQ() IN IRQ()

pin_starter= Pin(5 ,Pin.IN ,handler = enter_password() ,trigger = Pin.IRQ_RISING) You need to not have the "()" after enter_password. pin_starter= Pin(5 ,Pin.IN ,handler = enter_password ,trigger = Pin.IRQ_RISING) (Otherwise this is the same as using the `irq` function later. The second irq is alwa...
by jimmo
Tue Jun 04, 2019 1:19 am
Forum: General Discussion and Questions
Topic: PyBoard Timer Question
Replies: 9
Views: 2250

Re: PyBoard Timer Question

I guess I could use Timer.OC_TOGGLE and half the period to get the same frequency. Then set the counters to 0 each loop (Thanks for that tip btw) I'm not quite sure I follow sorry... However, that thread gave me a possible idea of how you could solve both problems (synchronising the ADC loop with t...
by jimmo
Mon Jun 03, 2019 10:33 am
Forum: ESP8266 boards
Topic: HX711 Sensor
Replies: 1
Views: 497

Re: HX711 Sensor

It sounds like people have used this sensor successfully. Here are some starting points:

viewtopic.php?t=5931

viewtopic.php?t=2678
by jimmo
Mon Jun 03, 2019 10:26 am
Forum: Pyboard D-series
Topic: Prototyping board with 20-pin mezzanine plug/s
Replies: 9
Views: 1836

Re: Prototyping board with 20-pin mezzanine plug/s

A Wbus-dip32 which brings out the pins exposed on the Pyboard D edges to a 0.1" pitch with a 0.6" row spacing akin to the Wbus-dip28 Yup, agreed! I would use this too. Just to confirm that we're on the same page: 32 = X*12 + Y*12 + 8 (gnd x2, Vin, Vbat, boot0, vusb, 3.3, reset) Would you match the ...
by jimmo
Mon Jun 03, 2019 9:56 am
Forum: General Discussion and Questions
Topic: PyBoard Timer Question
Replies: 9
Views: 2250

Re: PyBoard Timer Question

Therefore when observing the PWM pin, the phase may be out by 10%. Yup, that's true. And yeah, like you say, the sample rate isn't great either. However, the phase issue is not as bad as it would be if the PWM source came from somewhere else. If you choose the frequencies to be multiples of each ot...