 Okay, now we test the example with the one interrupt and now we can test the hands-on with the multiple interrupts. But we have only one button, then don't worry, I will show you how it will override these settings and we use the more buttons, the more inputs. Then I will start the new project and our goal will be here to use the two inputs with the interrupts. One input we turn, for example the button will turn the LED on and the second button will turn the LED off. And here I select again the F4, the line F401. The package will be LQFP64 and I have the 512kb device, it's the SteamCity to F401 RET. This one, click on OK. Now, like in the previous case, I will mark the LED, which is the PA5, as you know. I will set it as an output. Then I will use the PC13 again as an input with the interrupt, which will be here, the XTS13. And then I select the additional input. In my case, I don't have any other buttons. Then I will do the trick, I will select one Unconnect pin. For example here I will use the PA0. In your case you can use, for example, the different pin, if you want. But I will use the PA0 because I know that this pin is unconnected. You can also use the wire, which can be connected to the 5V or 3.3V or 0V. But I will use this pin, I will set it also as an XT. Then I have two XT pins and one LED. One pin will turn the LED on, second pin will turn the LED off. This is OK. Now I will go to the clock configuration, it's not necessary to change anything. And I will here go to the configuration, I look into the details. I look on the PA0, it will be on the rising catch, because I don't have any pull up or pull down and I don't want to use even the cable, for example, which will connect the pin with the 3.0 or ground. I don't care about rising or falling catch. This I will explain you a little bit later. But the PC13, I need again to change to the extra interrupt mode with falling catch. PA5, it's OK. Now again I need to check the XT. Today I will not use the delay, then I can left here the pension parity is on 0. But here I need to enable the XT0 and XT1. Please don't forget to enable the interrupts in the NVIC, otherwise the interrupt will not work. Never. OK. I can save my project, I will name it XT2. And today now I will use the IR, for example, it's the IDE. Now I can look into my main.c. You can see initialization is still the same, HL init, system.config in the GPO init. We can find all our pins and also all our two interrupt vectors. And also I can find here, here for be not only XT 10 to 15, but also XT XT to 0. Both handled with the HL EERQ handler. And for bow, I need now create my callback, like before, I will use the drivers, I will use the GPO and I will simply search for the underscore, underscore week, I will copy this complication function without week, of course, and I put it here into above my main, in my case. And now I have only one callback, but I have multiple interrupts. Then how to discover which interrupts trigger this callback, then for this I have here one input parameter, which is the pin, which triggers this interrupt. And I here put here the if, and I here put the check. If this pin was pin underscore 0, if this pin was 0, then for HL GPO underscore right pin, IOA, I have the lat, GPIO underscore pin underscore 5, and the state is GPIO pin underscore set to switch the pin off, and I detect the edge on the pin 0, and if this GPIO pin is equal to GPIO pin underscore 13, then HL underscore GPIO underscore right pin, GPIO to turn the pin on. Okay, I can try to compile my code. What this will do, when I have the callback from the interrupt on the pin 0, I switch the lat off, when I detect that this source of this callback is pin 13, I switch this pin on. Okay, maybe you are asking what, why if this pin, which triggers this callback is on the front port, on the XT periphery, you can have only the sources for the interrupts for pin 0 to pin 13, but you need to select which part will be the source. You cannot have the PA0 and PB0, but you can have the PA0 and PB1. This is allowed, but you cannot have two pin 0s on the different part as the source of the external interrupt. And don't be careful on this. Okay, I have everything, I can run my debug, okay, I can run the code here with this button or F5. I can press the button and let this blink. Now how to turn off the lat. I can slide over the pins on the, on the, on my nuclear, on the left side, and because this pin is floating, we talk about it, that is very dangerous to let the pin floating. Then if I slide over all these pins on the left header, I will charge the pin or discharge the pin, the pin how, how charged I am, and I will create the nurse on the pin and I change the state of the pin and I create the, the rising or the falling gauge. This is a reason why you need always to set this unconnected pin as the, as the analog, or connect these pins to the ground or VDD, because all the pins which are left unconnected can detect the change of this, of these pins, in my case that I slide over these pins. In the low power application, this way, this will rapidly increase the consumption of complete application. In case that you target the micro arms, this, the floating pin, which is left, left unconnected will be a huge emote of the current, because the internal structure of the pin is still working and everything is detected, even the noise. And be careful on this, please do not try this on the, on the, on the carpet, which charge you with, with very, very high, high, very high charge. Okay, then this is the, how to handle two pin interrupts. In case that you want to use the three, you only here put the more, more ifs and you handle the additional pin. This is everything from this part.