y
Dependencies: HSI2RGBW_PWM mbed fct_aide FastAnalogIn mbed-dsp NVIC_set_all_priorities
fonctions.c@10:45b00b385a21, 2019-06-03 (annotated)
- Committer:
- achille
- Date:
- Mon Jun 03 14:43:36 2019 +0000
- Revision:
- 10:45b00b385a21
- Parent:
- 8:e576f4eea51b
la avec tout
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
achille | 8:e576f4eea51b | 1 | #include"fonctions.h" |
achille | 6:13112e35988b | 2 | |
achille | 8:e576f4eea51b | 3 | DigitalOut ledV(D13); |
achille | 8:e576f4eea51b | 4 | DigitalOut ledR1(D12); |
achille | 8:e576f4eea51b | 5 | DigitalOut ledR2(D11); |
achille | 8:e576f4eea51b | 6 | |
achille | 8:e576f4eea51b | 7 | void led_set(int flagV, int flagR1,int flagR2) |
achille | 8:e576f4eea51b | 8 | { |
achille | 8:e576f4eea51b | 9 | if(flagV) { |
achille | 7:8a2a7633224b | 10 | ledV=1; |
achille | 8:e576f4eea51b | 11 | } else { |
achille | 8:e576f4eea51b | 12 | ledV=0; |
achille | 8:e576f4eea51b | 13 | } |
achille | 8:e576f4eea51b | 14 | if(flagR1) { |
achille | 7:8a2a7633224b | 15 | ledR1=1; |
achille | 8:e576f4eea51b | 16 | } else { |
achille | 8:e576f4eea51b | 17 | ledR1.write(0); |
achille | 8:e576f4eea51b | 18 | } |
achille | 8:e576f4eea51b | 19 | if(flagR2) { |
achille | 7:8a2a7633224b | 20 | ledR2=1; |
achille | 8:e576f4eea51b | 21 | } else { |
achille | 8:e576f4eea51b | 22 | ledR2=0; |
achille | 8:e576f4eea51b | 23 | } |
achille | 8:e576f4eea51b | 24 | } |