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 Digital and Analog pin Visualization improvement suggestion (Read 1244 times)
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Digital and Analog pin Visualization improvement suggestion
Sep 15th, 2020 at 4:17pm
Print Post  
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:

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Digital and Analog pin Visualization improvement suggestion
Reply #1 - Sep 15th, 2020 at 4:37pm
Print Post  
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
Select All
@Plot.Pins.OtherPin.Red {digitalRead(#OTHER_PIN)} 



The @plot command shows On/Off in the charts quite clearly.
« Last Edit: Sep 15th, 2020 at 4:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Re: Digital and Analog pin Visualization improvement suggestion
Reply #2 - Sep 17th, 2020 at 3:08pm
Print Post  
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 TopicPrint