 Hello, my name is Gustavo Sosa, I'm going to another video from ST Microelectronics. This is the second part of video world cards. At previous video, the UI was generated and we'll configure the ADC and the UART. At this part, we will write a code to link the ADC and the UART with the UI. After code generation, main file is automatically open. At the definition section, at the definitions will be used at the voltage calculation and by the UART. It's time to add the variables and the boofers used by the ADC and by the UART. After initializations, we need to start the ADC and the UART. First, we calibrate the ADC, start the ADC using interrupts, and the time at first end is started too, so can trigger ADC conversions. UART transmission and reception by interrupts is also started. Now it's time for the interrupt subroutines. First, I want for the ADC. Using functions from ST low-level libraries, the ADC value is converted to voltage. Next is the UART. Reception will receive character by character and fill a buffer. It is checked for the entire kiosk code, or if the buffer is full and set a ready flag. Transmission is just declared, nothing is done there. If you want, a flag could be set. Open model CPP. Include definitions as extern of ADC variables and your ready flag that will be used here. At model tick, add code to check if your buffer is full and to pass a voltage value. Open model listener HPPP by placing the cursor at it and with F3. Add include for touch effects types. At public, add the definitions of the functions collected from the model to the presenter through the model listener. Open screen 1 presenter CPP. Add a function to pass to the view the voltage value and the function passing the flag that the UART buffer is ready. Now we'll open screen 1 presenter HPPP by placing the cursor at it and with F3. At public, declare the two functions. Open screen 1 view CPP. Include string and STM32H7HAL header files. As extern declare the UART reception buffer. Add a function to display the voltage at the two texts. First, we convert the value to characters, then we fill each wildcard buffer position by position. So text to be updated at the screen, we need to invalidate both texts. We add to the function to pass the UART reception buffer to the wildcard buffer. The wildcard's buffer name is the name of the text plus buffer. In case two wildcards will be woofer 1 and woofer 2, as in this example. Finally, open screen 1 view HPPP by placing the cursor at it and with F3. At public, declare the functions. Save all files and compile. Click at the book icon to download and the book the application. At pop-up window to switch perspective, click at switch. At live expression, add the ADC and UART variables. We need to have a terminal. Now it's time to open it and configure it. The serial port will be the one with the name STMicroelectronics STLink. Configure the terminal with local echo. The port configuration is 115,200. 8 bits, no parity, one stop bit. I will arrange the window so the s1032QID and the terminal could be seen. I will expand the UART reception buffer and can be observed it is empty. Also, we can observe the text that will be sent to the terminal. Now hit the run icon at the top. The terminal have the mesh ascent and is waiting for our input. It's possible to observe the ADC changing values. Now go to terminal and type. We can observe how it's been filled at the buffer. When the buffer is full or with enter, the text will be passed to touch effects and the screen. In this case is with enter. Here is the screen we create. Instead of name, we are typing s1032H735G discovery kit and touch effects and we hit enter to show it. We can observe the voltage variations as long as we move the potentiometer. Thank you for watching.