Search found 497 matches

by jimmo
Thu Jun 06, 2019 10:10 am
Forum: ESP32 boards
Topic: SPI hardware
Replies: 5
Views: 401

Re: SPI hardware

Also check that the cs pin is initialized with Pin.OUT.
by jimmo
Thu Jun 06, 2019 10:08 am
Forum: Pyboard D-series
Topic: Nut mounted to bottom of sensor tile
Replies: 2
Views: 172

Re: Nut mounted to bottom of sensor tile

Are the screw size and thread pitch for the nut that is mounted to the bottom of the sensor tile available? It mates up to the holes in the back plane board. I searched the documentation unsuccessfully. I'm fairly sure they're M1.6 thread. The 3D model in the reference schematics is SMTSO-M1.6-1ET-...
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: 274

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: 274

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: 289

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: 274

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: 244

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: 487

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: 7
Views: 501

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: 146

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