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.