zx-24p pin25 -27

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
rdrive
Posts: 17
Joined: 03 December 2010, 22:31 PM

zx-24p pin25 -27

Post by rdrive »

I need to use pin 25 as an input is there any code needed or due I treat it as pin 26 (getpin(26))?
dkinzer
Site Admin
Posts: 3122
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: zx-24p pin25 -27

Post by dkinzer »

rdrive wrote:I need to use pin 25 as an input is there any code needed or due I treat it as pin 26 (getpin(26))?
If you want read pin 25, use GetPin(25). The same technique works for all pins.
- Don Kinzer
kurakaira
Posts: 77
Joined: 21 March 2007, 1:21 AM
Location: Finland

Post by kurakaira »

Except reading 1 is difficult since the led's act like a pullup so the ZX read's the pins 25 & 26 as high already .
But reading 0 should not be a problem .
Post Reply