My code looks quite similar to this:

board.on('ready', () => {
   const motor = new five.Motor('GPIO17');

The problem is that when I run the code, its gets error: Unknown pin "undefined". When I hook my motor up to GPIO18 it works fine but I doesn't want to let GPIO 17 work. I am aware of the different GPIO numbering such was Physical and wiringPi and BCM however any numbering of GPIO 17 gets this error. Help please

  • So for WiringPi GPIO numbering pin 1 works fine but when I use 0 i get error unknown in undefined – z Eyeland Nov 26 at 22:53
  • Ive been testing out all the pins. It appears to be just Wiring Pi pin 0 that is getting the error. Wiring Pi pins: 1,23,24,25 and other pins work. Pin 2 says does not support mode pwm...ok makes since but whats wrong with pin 0? – z Eyeland Nov 26 at 23:05
  • Im guessing its a JohnnyFive error. I installed onoff npm package and GPIO 17 works just fine – z Eyeland Nov 27 at 16:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.