You are reading a single comment by @veryalien and its replies. Click here to read the full conversation.
  • SOLVED! It was mostly a "betwwen-the-ears" problem! ;)

    I looked through the code until I found what I needed to know. The call to "wiringPiSetup" confirmed that the normal GPIO numbers should be used (I'm using sudo). I didn't want to risk blowing up any GPIO pins by putting buttons on output pins. However, after reading the code, it looks like the correct pin mode is always set for reads or writes, which probably means it's more difficult to blow up the pins.
    Anyway, it works!

    Original message is here, so you can still read about the "problem":

    I've got Espruino compiled, built and running on the raspberry pi.
    WiringPi is (obviously) installed and working too.
    Before I go and do anything stupid with the GPIO pins I have a pretty basic question: How do I actually use Espruino and WiringPi together?
    I'm looking for some simple example code that will turn raspberry pins on and off, or set pwm values. I've looked at the 433Mhz example and digitalPulse is used there. However, I'm still not sure about the actual pin names/numbers to use with the raspberry pi GPIO pins.
    Simple examples would be greatly appreciated!

About

Avatar for veryalien @veryalien started