Shop OBEX P1 Docs P2 Docs Learn Events
AW: AW: AW: [basicstamps] inA and for next — Parallax Forums

AW: AW: AW: [basicstamps] inA and for next

ArchiverArchiver Posts: 46,084
edited 2002-08-06 18:46 in General Discussion
Hi Tracy,

thanks a big lot!

I found a solution, though it looks like a monster it works!



START:

debug cls
wert = ~inl 'pins 0-7
digit= ncd wert
debug? digit 'gives no. of sensor
debug? ncd (~(dcd (digit-1))& wert) 'gives no. of another sensor if there
is one
if digit=0 then start

The final hint was that you said I must AND two complements.

Thanks for the lesson, teacher! :-)

Uli

Urspr
Sign In or Register to comment.