hi i am using a 4-16 decoder 74hct154 and i am trying to output three differnt things of which two are lighting up fine but one isnt i was wondering if it was anything to do with my code
outputs:
let dirsc=%11111111
let pinsc=%00000000
let pins=b6
pause 2
***let pinsc=%11110000
let pins=b7****
pause 2
let pins=%00000000
let pinsc=b0
high b1
pause 2
let pins=%00000000
return
the code in the stars is not showing up on my dotmatrix
the portc is what controls the decoder and the pins is the rows of the matrix
the var b7 is a number e.g 28 which should light 3 lights 2,3,4
but this is not showing up
but if i connect the negative wire off the matrix which should go to the decoder it lights up but the others dim and its not right to do this ca anyone help me thanks
outputs:
let dirsc=%11111111
let pinsc=%00000000
let pins=b6
pause 2
***let pinsc=%11110000
let pins=b7****
pause 2
let pins=%00000000
let pinsc=b0
high b1
pause 2
let pins=%00000000
return
the code in the stars is not showing up on my dotmatrix
the portc is what controls the decoder and the pins is the rows of the matrix
the var b7 is a number e.g 28 which should light 3 lights 2,3,4
but this is not showing up
but if i connect the negative wire off the matrix which should go to the decoder it lights up but the others dim and its not right to do this ca anyone help me thanks