- Code: Select all
#option SHIFT_MAX = 8
#option SHIFT_CLOCK = 2
imports shift
const myValue = 160
Sub Main()
high(D10)
shift.SetOutput(D11)
shift.SetClock(D13)
shift.Out(LsbFirst,myValue,1)
low(D10)
End Sub
#option SHIFT_MAX = 8
#option SHIFT_CLOCK = 2
imports shift
const myValue = 160
Sub Main()
high(D10)
shift.SetOutput(D11)
shift.SetClock(D13)
shift.Out(LsbFirst,myValue,1)
low(D10)
End SubDavid John Barker wrote:Can you let me know if it works OK for you.
' Options
#option SHIFT_MAX = 8
#option SHIFT_CLOCK = 2
' Imports section...
imports shift
dim myValue as byte
Sub Main()
myvalue = &HAA
shift.SetOutput(D11)
shift.SetClock(D13)
shift.Out(LsbFirst,myValue,8)
while true
end while
End SubUsers browsing this forum: No registered users and 6 guests