School Project BS2
GregNSCC
Posts: 3
I am new to using the basic stamp 2 and am looking to write code so that it counts up from 0 to 3 each time (photo1 = 0) and then output to a 7 segment display using a ls7447 driver . Now on the debug screen I can see where the total for (score1) goes from 0 to 1 to 2 to 3 but the 7 segment only displays when it reaches a 3 and not when it is at 0, 1 or 2.
is there a better way to write this so that it will display the current total as it changes? If anyone has any input it would be greatly appreciate
solved thanks for the help
is there a better way to write this so that it will display the current total as it changes? If anyone has any input it would be greatly appreciate
solved thanks for the help
Comments
Good luck, John
1) You're incrementing variable score1 twice. The for/next loop, and your line "score1 = score1 + 1". Maybe not what you intended.
2) Your 'next' command (if you keep it) ends your update loop. Shouldn't it come after your BCD output codes?