0
Nao

callback function on NanoPi M4

Recommended Posts

Hi,

I need to use callback function in Python3 on my NanoPi M4 but I can't,

so it is very nice if anyone can help me with this issue.

 

 

So far I've tried the function with wiringpi as shown command bellow

Quote

wiringpi.wiringPiISR(PIN_TO_SENSE, wiringpi.GPIO.INT_EDGE_BOTH, gpio_callback)

but this doesn't work at all,

that generates some errors and after that my command in /usr/bin/ doesn't work ....

 

I can use other functions in wirignpi so guess something is wrong with only this function...

Is there any way to use callback function with NanoPi M4, for example using other modules or something

 

Thank you,

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0