Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Interrupt handler inside C++ class (Read 1729 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Interrupt handler inside C++ class
Feb 16th, 2017 at 6:39am
Print Post  
I have written an interrupt handler inside a sketch and copied essentially the same code to a C++ class. It works fine in the sketch but not in the class.

I remember stumbling across this awhile ago but I don't remember the solution. How do I get an interrupt handler working inside a C++ class?

I have included my test program and my .h and .cpp files. I am trying to get four variants working:
1) .ino file handles using polling (works)
2) .ino file handles using interrupts (works)
3) .cpp file handles using polling (works)
4) .cpp file handles using interrupts (does not work)

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Interrupt handler inside C++ class
Reply #1 - Feb 16th, 2017 at 4:16pm
Print Post  
Hi Bob,

This forum only has the expertise to make the plugin work. 

I think the question is best asked in the arduino.cc forum. They will waste less of your time Smiley

Tim



  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint