How slots machines are programmed

broken image
broken image

Ok, so this is the first program I have written in arduino (I used an arduino uno). stop running of slots when all slots have stopped running middle set of led's (pins 10-12) turn off (during the running of the slot machine) left set of led's (pins 6-8) turn off (during the running of the slot machine) right set of led's (pins 2-4) turn off (during the running of the slot machine) middle set of led's (pins 10-12) turn on (during the running of the slot machine)ĭelay(rundelay) // delay before moving up to next LED set each pins used for the slot machine as outputs (pins 2-4, pins 6-8, pins 10-12) I know it is not written well and I was just wondering if I could get some general tips on better programming skills. I know you guys might not want to take the time to copy the program and hook it up to your arduinos but I was just wondering if I could get some tips. It is supposed to be a slot machine thing that has the led's (the led's are used as the sets of slots) hooked up to pins 2-4, pins 6-8, and pins 10-12.

broken image