Search found 577 matches

by jickster
Wed Feb 20, 2019 3:02 am
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 1
Views: 35

Re: Custom port A9G module: help wanted

Remind me


Sent from my iPhone using Tapatalk Pro
by jickster
Sat Feb 02, 2019 3:20 am
Forum: The MicroPython pyboard
Topic: CANbus bitrate and frame loss
Replies: 7
Views: 272

Re: CANbus bitrate and frame loss

What puzzles me however is that there is real frame loss at high baud rates (>=500 kbps) when sending non-stop. For a frame to be placed on the CAN bus, it must be acknowledged by at least one other node (that sends an active ACK bit). Obviously the CAN controller of the receiving pyboard must have...
by jickster
Thu Jan 24, 2019 2:11 am
Forum: The MicroPython pyboard
Topic: CANbus bitrate and frame loss
Replies: 7
Views: 272

Re: CANbus bitrate and frame loss

Did you put terminating resistors?


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Jan 09, 2019 6:42 pm
Forum: The micro:bit
Topic: How to add my own python module to micropython hex file?
Replies: 1
Views: 139

Re: How to add my own python module to micropython hex file?

When you say precompiled do you mean
.c -> .obj (compile c-code to binary)
or
.py -> .mpy (compile python source to byte-code)

?


Sent from my iPhone using Tapatalk Pro
by jickster
Fri Jan 04, 2019 10:05 pm
Forum: The MicroPython pyboard
Topic: Speed calculation
Replies: 3
Views: 167

Re: Speed calculation

So I schedule a callback-function in the timer callback-function? What do I do with the arg-argument of the schedule-function if I'm scheduling a function with no args? Thanx! Pass in 0 like the timer example here https://docs.micropython.org/en/latest/reference/isr_rules.html#isr-rules Sent from m...
by jickster
Fri Jan 04, 2019 8:33 pm
Forum: The MicroPython pyboard
Topic: Speed calculation
Replies: 3
Views: 167

Re: Speed calculation

There are rules about ISRs: https://docs.micropython.org/en/latest/reference/isr_rules.html Unless you have a time-sensitive action to take, you should consider using micropython.schedule https://docs.micropython.org/en/latest/library/micropython.html?highlight=schedule#micropython.schedule With thi...
by jickster
Fri Jan 04, 2019 4:04 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 3597

Re: How do I make a port of MicroPython for Casio calculators?

The crash is in mp_obj_fun_get_name.

Try commenting out the lines therein and adding them back one at a time.

If you have a debugger, it’s easier cause you can just put a breakpoint in mp_obj_fun_get_name and see where it dies.


Sent from my iPhone using Tapatalk Pro
by jickster
Thu Jan 03, 2019 5:40 pm
Forum: The MicroPython pyboard
Topic: Is there a code level reason why my interrupt is not getting called?
Replies: 9
Views: 233

Is there a code level reason why my interrupt is not getting called?

I think your script just exits cause there’s nothing to keep it from exiting.

Just to test, put an infinite

while True: pass

loop at the very bottom.

Sent from my iPhone using Tapatalk Pro
by jickster
Thu Jan 03, 2019 5:35 pm
Forum: The MicroPython pyboard
Topic: Is there a code level reason why my interrupt is not getting called?
Replies: 9
Views: 233

Re: Is there a code level reason why my interrupt is not getting called?

It wouldn’t hurt to call

ext.enable()


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Jan 02, 2019 7:28 pm
Forum: ESP8266 boards
Topic: Interrupt Routine, counting more than sys.maxsize
Replies: 8
Views: 207

Re: Interrupt Routine, counting more than sys.maxsize

dhylands wrote:Micropython has the notion of hard ISRs and threaded ISRs. I believe that on the ESP8266 all of the ISRs are threaded. Threaded ISRs don't have the same restrictions that hard ISRs do.
Where’s docs for this concept?


Sent from my iPhone using Tapatalk Pro