mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-04-19 09:23:06 +00:00
Shift pin number over for proper addressing
This commit is contained in:
@@ -32,7 +32,7 @@ export def portRead
|
||||
end
|
||||
|
||||
def digitalWrite(pin, val)
|
||||
return ^ANN0[pin&3+val&1]
|
||||
return ^ANN0[((pin&3)<<1)+val&1]
|
||||
end
|
||||
|
||||
export def portWrite(val)
|
||||
|
||||
Reference in New Issue
Block a user