D Flip-flop to Stamp 2
Rosalina1011
Posts: 4
in BASIC Stamp
Is there away to make a Stamp 2 to perform like a D flip-flop ? I tried every type of coding nothing works
Comments
Seems like you could debounce the input button and then use TOGGLE for the output.
Must be an interesting situation where you want to use a $40 Stamp to replace a 40 cent ‘74.
The input is not debounced, but that is also true of a D flip-flop. A little pause in the loop might work for debounce, just like a small capacitor on the input of the flip-flop.
I still love coming back to the BASIC Stamp. It is the cat's meow for BASIC programming skills. Here is the minimalist program, a full version for the BS2pe (or any). The LED is connected to pin p8 and the pushbutton is on p0 with pullup.
It is. I would do things in reverse. Use the Stamp to configure the 40 cent '74. And produce an output.
Never mind the fact that there are still four families of bobcats making themselves at home on the backlawn of Parallax.