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 Map function (Read 3326 times)
Charlie42
Junior Member
**
Offline


Posts: 33
Joined: Dec 8th, 2013
Map function
Dec 14th, 2013 at 6:53pm
Print Post  
hello everyone,

       I am reading a analog voltage and I am maping the value from 0 to 1023 to 0 to 255, but in the debugger I see 0 to 1023. I can post code if need be. Thanks.

Charlie

  
Back to top
 
IP Logged
 
Dennis Mabrey
Junior Member
**
Offline


Posts: 19
Location: Branchburg, NJ
Joined: Oct 22nd, 2013
Re: Map function
Reply #1 - Dec 14th, 2013 at 7:31pm
Print Post  

It works ok for me. Does it look like the following?


  
Back to top
 
IP Logged
 
Charlie42
Junior Member
**
Offline


Posts: 33
Joined: Dec 8th, 2013
Re: Map function
Reply #2 - Dec 14th, 2013 at 8:02pm
Print Post  
Hi Dennis,

       Thanks for the reply. No I don't get that. I will take a screen shot and post it. Thanks.

  
Back to top
 
IP Logged
 
Charlie42
Junior Member
**
Offline


Posts: 33
Joined: Dec 8th, 2013
Re: Map function
Reply #3 - Dec 14th, 2013 at 8:08pm
Print Post  
Hi Dennis,

        OK I was not using the function properly. I now have it working. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint