y

Dependencies:   HSI2RGBW_PWM mbed fct_aide FastAnalogIn mbed-dsp NVIC_set_all_priorities

Committer:
achille
Date:
Mon Jun 03 14:23:32 2019 +0000
Revision:
8:e576f4eea51b
Parent:
7:8a2a7633224b
version 16.30;

Who changed what in which revision?

UserRevisionLine numberNew 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 }