Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Digital and Analog pin Visualization improvement suggestion (Read 122 times)
Chris Molloy
Junior Member
**
Offline



Posts: 53
Ontario, Canada
Digital and Analog pin Visualization improvement suggestion
Sep 15th, 2020 at 5:17pm
 
It would be extremely helpful if visualizations labeled the pins according to the pin definitions in the sketch.
I spend a lot of time looking to see which pin is which.

Something like this

#define BUTTON_PIN 0
#define OTHER_PIN   1

shows like this:...

Back to top
« Last Edit: Sep 15th, 2020 at 5:19pm by Chris Molloy »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Digital and Analog pin Visualization improvement suggestion
Reply #1 - Sep 15th, 2020 at 5:37pm
 
It's a nice idea but there isn't a correlation between the defines in your code and actual pins.

It just so happens you have created a define with a value of 1 and it just so happens at some place in your code you use that to read or write a digital pin.

What might be an idea for us to consider if a local xml or json file where you can name your pins. Maybe there is some way to then make those definitions available to your code as #defines. That way the uncompiled and compiled sources would know the names/numbers of pins.

My suggestion would be to create something like a pins.h which contains all your #defines for all pins (and no other code). Then it will be easy to read your code to find a pin number. Maybe if we can find a pins.h the debugger can read that simple code to find some names.

Another idea is to use the @plot command instead of the digital pin viewer. Then you can plot only the pins you are working with using a breakpoint message with same syntax as the code:

Code:
@Plot.Pins.OtherPin.Red {digitalRead(#OTHER_PIN)} 



The @plot command shows On/Off in the charts quite clearly.
Back to top
« Last Edit: Sep 15th, 2020 at 5:40pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
Chris Molloy
Junior Member
**
Offline



Posts: 53
Ontario, Canada
Re: Digital and Analog pin Visualization improvement suggestion
Reply #2 - Sep 17th, 2020 at 4:08pm
 
Or make a @visualize.Pins.OtherPin {A_PIN)}
which would provide vm with the name to display for a pin number
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print