Pages: [1]   Go Down
Author Topic: integer limits  (Read 929 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How do I set high and low limits or an Integer?

such as only count down to 1

and only count up to 8
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17305
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How do I set high and low limits or an Integer?

such as only count down to 1

and only count up to 8

Nothing automatic that can do that. You can write if statements to test if your varialbles are in range or not, and take action to set them to another inrange value or not allow them to go outside your limits.

Lefty
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 227
Posts: 14009
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


check - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1240359320
give it a try
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: