Shop OBEX P1 Docs P2 Docs Learn Events
Formatting Input Data — Parallax Forums

Formatting Input Data

Huge DemuxHuge Demux Posts: 5
edited 2004-11-14 19:04 in BASIC Stamp
Hi!
I would like to know the best way to format a sensor's input that starts at 255 and goes down to 0.
First I want to reverse it so that it starts from 0 and goes up to 255. Then I'd divide the result by 2 to get a 0 -127 range.
So how do you use Pbasic to reverse a range of numbers?

Demux

Comments

Sign In or Register to comment.