Debug with global config variable
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
import time,sys
|
||||
import RPi.GPIO as GPIO
|
||||
import smbus
|
||||
from shared import config
|
||||
|
||||
debug = 0
|
||||
debug = config.DEBUG
|
||||
# use the bus that matches your raspi version
|
||||
rev = GPIO.RPI_REVISION
|
||||
if rev == 2 or rev == 3:
|
||||
|
||||
Reference in New Issue
Block a user