mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
fix node-red
This commit is contained in:
parent
8e1ff7743f
commit
101ffe5866
@ -15,7 +15,17 @@
|
||||
|
||||
# Import library functions we need
|
||||
import six
|
||||
import RPi.GPIO as GPIO
|
||||
|
||||
try:
|
||||
import RPi.GPIO as GPIO
|
||||
except:
|
||||
class GPIO:
|
||||
BOARD = None
|
||||
@staticmethod
|
||||
def setmode(*args): pass
|
||||
@staticmethod
|
||||
def setwarnings(*args): pass
|
||||
|
||||
import struct
|
||||
import sys
|
||||
import os
|
||||
|
Loading…
Reference in New Issue
Block a user