Help with school project
April 20, 2009
Alright let me break this down quickly; i being the procrastinator that i am, (a very good one) left a project for the last minute (i.e. it should be due tommorw). I assume i can find most of this stuff in the manuals however i dont have enough time to test all the different circuits as well as design the aesthetic and written portion of my presentation. It will consist of a bunch of LEDs, maybe around 7 or so hooked up to the output pins 0-3 and im assuming the pins directly to the left or right depending on how you look at the board of the reset switch the only time i've coded for them was with the ping sensor so im assuming their coded with (high portc 0 to high portc 4) im assuming that will turn them on and off per pin assuming i need more than 7 ill figure the rest out. However the catch is that im using a momentary push button switch to toggle which LEDs i want turned on and which i want turned off. Its a basic momentary push button switch from radioshack with two connections which i assume are power and ground. I have absolutly* no experience coding with switches or for that matter connecting them with the 28x1 project board. For example,
high 0: high 1: high 3: high portc 1: high portc 4
'now i push the switch, still not sure where its connected and now...
high 2: high 3: high 0: high portc 2: high portc 4 ' ect. maybe another two changes following this one
i want the LEDs to remain on until i push the switch once which will hopefully change them to the next set designated by the "high" pins. Once again im very sorry if these questions are in the manuals however i dont have the time at this moment to read through them or screw this up. (it was just a spontaneous thought i had)