1 Reply Latest reply on Oct 9, 2015 10:22 AM by Ramith

    Gpio pins on intel edison

    Ramith

      I'm using the following code to light the LED connected to Digital Pin ~5 on my Edison. & it works (I'm using Arduino Expansion Board)

       

      int main(){

            mraa::Gpio* d_pin;

           d_pin =new mraa::Gpio(5, true, false);

          

       

           d_pin->write(1);

      }


      so in order to light the LED connected to Digital pin ~6 the modified code should be

      int main(){

            mraa::Gpio* d_pin;

           d_pin =new mraa::Gpio(6, true, false);

          

       

           d_pin->write(1);

      }

      right? but it doesn't work

      can someone map out the digital pins with Gpio


      Thanks,