# PiFace digital 2

**URL:** https://discourse.nodered.org/t/piface-digital-2/13045
**Category:** General
**Created:** [8 July 2019 14:27 UTC](https://discourse.nodered.org/t/piface-digital-2/13045 "2019-07-08T14:27:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Biolzibox](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Biolzibox](https://discourse.nodered.org/u/Biolzibox)
#### Post date: [8 July 2019 14:27 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/1 "2019-07-08T14:27:44Z")

</div>

Hey there.  
i need some help with my raspberry pi 3+ and piface digtital 2.  
I have made a control box with a lot of buttons (in) and a 24 volt led light (out)

i have used piface digital 2 emulator and seen that all mine in and out putts work.  
Well I would to do it in node red.  
I can't get it to work, what do I do wrong.??

I get this error whit spi off

8 Jul 15:48:42 - [error] [rpi-piface in: 11c41607.99f6fa] Error: Command failed: gpio -p mode 202 tri  
Unable to open SPI device: No such file or directory  
8 Jul 15:48:46 - [error] [rpi-piface out: de506c6b.6756d] Error: Command failed: gpio -p write 201 1  
Unable to open SPI device: No such file or directory

 ![node-red%20error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/772f05b27a699d1631ba7d63b6f71f595ffd642a.jpeg)

i get this error whit spi on

Error: "gpio load spi" command failed. Check device tree is disabled.  
8 Jul 16:11:23 - [warn]

 ![node-red%20error%20spi%20on](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/76b0113561eb2e332b1b6c057115495f1c605de7.jpeg)

I have been reading and reading  
and my progam must start with one of these download inside  
Wiring Pi

[http://wiringpi.com/reference/setup/](http://wiringpi.com/reference/setup/)

There are four ways to initialize wiring.

int wiringPiSetup (void);  
int wiringPiSetupGpio (void);  
int wiringPiSetupPhys (void);  
int wiringPiSetupSys (void);  
One of the setup functions must be called at the start of your program or your program will fail to work correctly. You may experience symptoms from simply not working to problems and timing issues.

do the node-red starte one of them op when it starts?

I hope someone who can help  
etc. MM

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [8 July 2019 14:50 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/2 "2019-07-08T14:50:06Z")

</div>

Have you enabled SPI on your raspberry?

`sudo raspi-config`

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/72235c47daeade624c90ffbd0921dd01c0448a5b.jpeg)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3ed0b4725b8f91eade17a932434ea324045554ae.jpeg)

---

<div class="post-metadata">

### Author: ![Biolzibox](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Biolzibox](https://discourse.nodered.org/u/Biolzibox)
#### Post date: [8 July 2019 15:25 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/3 "2019-07-08T15:25:12Z")

</div>

yes and get this error

 ![node-red%20error%20spi%20on](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/76b0113561eb2e332b1b6c057115495f1c605de7.jpeg)

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 July 2019 15:39 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/4 "2019-07-08T15:39:37Z")

</div>

Did read the readme of the node before you installed it?

See [flows.nodered.org](http://flows.nodered.org) and search for the node

---

<div class="post-metadata">

### Author: ![Biolzibox](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Biolzibox](https://discourse.nodered.org/u/Biolzibox)
#### Post date: [8 July 2019 16:51 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/5 "2019-07-08T16:51:22Z")

</div>

hey i have install ol of them. see foto  
i am not sure whit node you mean i have forgotten

 ![node%20red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/60a94a676f21b32cfe6653bede8a19bb9dc73328.jpeg)

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 July 2019 17:51 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/6 "2019-07-08T17:51:16Z")

</div>

The section of pre-reqs which specifically mentions how to disable the device tree

---

<div class="post-metadata">

### Author: ![Biolzibox](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Biolzibox](https://discourse.nodered.org/u/Biolzibox)
#### Post date: [8 July 2019 18:37 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/7 "2019-07-08T18:37:48Z")

</div>

hi it's not to sound sour but the page i am looking at is 2 years and 10 months old and when i try to find something about Device Tree in the raspi-config then there is nothing  
what is it and i can't find anything called it

![advanced%20options](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6098548321b0fbcbb0319cbb881168b7d10d2ad7.jpeg) ![Device%20Tree](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5b6752b11d48c4512d7c343d8e195db49ed21133.jpeg)

then select the Advanced Options, then Device Tree (there is memory split), and finally select No and OK. You will then need to reboot

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 July 2019 18:39 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/8 "2019-07-08T18:39:24Z")

</div>

Then open an issue against the node to get the docs updated.

And try googling on how to turn off the device tree

---

<div class="post-metadata">

### Author: ![Biolzibox](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Biolzibox](https://discourse.nodered.org/u/Biolzibox)
#### Post date: [8 July 2019 18:41 UTC](https://discourse.nodered.org/t/piface-digital-2/13045/9 "2019-07-08T18:41:45Z")

</div>

thanks i do that  
Thank you for responding
