Search found 629 matches

by jickster
Thu Feb 21, 2019 2:27 pm
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 38
Views: 30534

Re: Custom port A9G module: help wanted

Ok, I looked into ESP pin callback implementation and found that these callbacks belong to root pointers. Am I on the right way? Root pointers are not why you’re failing here. Look at the implementation of mp_call_function_0() and you’ll see your problem: you’re not passing the type it expects. Sen...
by jickster
Wed Feb 20, 2019 4:34 pm
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 38
Views: 30534

Re: Custom port A9G module: help wanted

Short version: you’re not sending a micropython object ie it’s more complicated.

Long version: forthcoming.


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Feb 20, 2019 3:02 am
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 38
Views: 30534

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: MicroPython pyboard
Topic: CANbus bitrate and frame loss
Replies: 7
Views: 5337

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: MicroPython pyboard
Topic: CANbus bitrate and frame loss
Replies: 7
Views: 5337

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: micro:bit boards
Topic: How to add my own python module to micropython hex file?
Replies: 1
Views: 3148

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: MicroPython pyboard
Topic: Speed calculation
Replies: 3
Views: 2513

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: MicroPython pyboard
Topic: Speed calculation
Replies: 3
Views: 2513

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

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: MicroPython pyboard
Topic: Is there a code level reason why my interrupt is not getting called?
Replies: 9
Views: 4806

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