View Single Post
  #3   Spotlight this post!  
Unread 18-02-2002, 09:00
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Need help with 255 Variable

Quote:
Originally posted by Joseph F
I know never to allow a pwm to reach or exceed 255 due to the serout command. However can I create a variable and allow that variable to exceed 255? Also do i need to assign it as a word instead of a byte to allow it to work?
1. If you're exceeding 255 in any variable and don't want loss of data to occur, it needs to be a word variable.

2. The RC itself can handle any PBasic supported type of variable in your code. Where you run into the problem is if you try to put that variable in Serin or Serout. So, if the variable in question is in neither of these lines, you can do whatever you want with it.
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...