1 | #include "taste_yt_remote.h"
|
2 | #include "main.h"
|
3 |
|
4 |
|
5 |
|
6 | void set_blaueTaste1(uint8_t push){
|
7 | // WEnn erstes Bit dann leuchte oder schalte
|
8 | if (push == 1){
|
9 | HAL_GPIO_WritePin(GPIOA,GPIO_PIN_0,GPIO_PIN_SET);
|
10 | HAL_GPIO_WritePin(GPIOC,GPIO_PIN_7,GPIO_PIN_SET);
|
11 | }
|
12 | else if(push == 0){
|
13 | HAL_GPIO_WritePin(GPIOA,GPIO_PIN_0,GPIO_PIN_RESET);
|
14 | HAL_GPIO_WritePin(GPIOC,GPIO_PIN_6,GPIO_PIN_RESET);
|
15 | HAL_GPIO_WritePin(GPIOC,GPIO_PIN_7,GPIO_PIN_RESET);
|
16 | }
|
17 | else{
|
18 | HAL_GPIO_WritePin(GPIOA,GPIO_PIN_0,GPIO_PIN_RESET);
|
19 | HAL_GPIO_WritePin(GPIOC,GPIO_PIN_7,GPIO_PIN_RESET);
|
20 | }
|
21 |
|
22 | //i=0;
|
23 | }
|