sterlinggugl.blogg.se

Origin of simon says
Origin of simon says







So, they've saved all the button pins in an array and the reason that they've done this is, so they can scroll through it later.

ORIGIN OF SIMON SAYS CODE

So, if we're going to look at the code here we're going to see Int button. So, all the lights load up it'll give us a first one, we press that one it'll give us a pattern, and all want us to output that pattern continually. It'll upload it'll reset the board and then it will run the new code and you'll see all the lights go on, so if we want to see that again we can hit reset, all the lights will go on and I'll refresh, it'll also place a tone and it will give us a lead for which way we want to go. So, what we're going to do is we're going to upload this code so that it stops that. So, the last program is currently running on there and that's having the input pull up on pin 3, which is making this LED look high. So now that that's all done we're going to like the circuit and then we're going to open guide for Simon Says. So, from this, we will have a straight connection or a straight set up of all the pins from pin 2 to pin 10 with the first one being the red push button and the last one being the signal pin for the buzzer. The green connection goes to 6 and green LED connection goes to 7, the blue push-button connection we put in 8 and the blue LED will go in 9.

origin of simon says

So, row 25 following a book will go to pin 3, so the push-button pin for the red one stays the same the positive red connection goes to pin 3, then yellow push-button pin goes to pin 4 and then the yellow LED pin goes to pin 5, so it is essentially, push button, LED, push button, LED. So, your positive terminal from the red LED I've put in row 25. So, with that said that is the negative connections of the LEDs connected, so we'll go across and we will rewire the positive connections. So, an important thing to not do here is, do not connect the LED to any of the pins from the push buttons because they are inputs and an LED is an output component. So, I'm putting the positive polarity of the LED on the uppermost side and the negative on a lower side and that way that I know that I'm consistent with my connections. So, it is a little tough to see given the number of wires but essentially what we're doing, is we're putting the positive terminal of this one is going into 19 H and the negative terminal is going in to 20 H, from there I'm connecting 20 on the outer most pin to ground through that resistor and I'm just going to do the same thing.

origin of simon says

So, for this section to omit the use of some wires we're going to be using these 330-ohm resistors to go straight to the ground connection from the negative terminal of the LED. So, the LEDs in this one will change the way that these are connected, so we'll connect the LEDs and then we'll make sure that all the connections are good. So that is one of the pins going to ground and the other pin going to pin 8. So, one of the extra components is another push button, just to increase the difficulty of this Simon Says game, so we're going to plug that in the same way that we did the other push buttons and we're going to connect it once again the same way that we did with the others. So, we can keep the circuit setup the same way as we did in the last video, we're just going to include the extra components. So, the components that we're going to include improved from project set 1, LEDs once again and some 330-ohm resistors. In this circuit, we're going to expand on our last circuit as well as including some other components from projects set 1. Today we're going to finish off project set 2, by undertaking circuit 2C, which is a Simon Says game.

origin of simon says

Hey guys Christian here from Core Electronics.

origin of simon says

USB Car Charger - Quick Charge 3.0 and 18W Power Delivery Price: $29.95 Raspberry Pi Pico H (With Headers) Price: $8.15 GPIO Male Hammer Header Kit - Solderless Raspberry Pi Connector - Male Header + Installation Jig Price: $11.11 PiicoDev OLED Display Module (128圆4) SSD1306 Price: $12.60







Origin of simon says