Skip to content

Commit 07400d0

Browse files
authored
Merge pull request #5 from freaf87/master
Buzzer support added to PDC
2 parents 06b5465 + 9865d23 commit 07400d0

18 files changed

Lines changed: 769 additions & 56 deletions

File tree

02_Code/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv

02_Code/FSEDevBoard/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
MANIFEST

02_Code/FSEDevBoard/FseDevBoard/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# along with FSE 2017. If not, see <http://www.gnu.org/licenses/>.
1717

1818
"""Driver for a BUZZER."""
19+
import sys
20+
from os.path import dirname
21+
sys.path.append(dirname(__file__))
1922

2023
import time
2124
import wiringpi
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# along with FSE 2019. If not, see <http://www.gnu.org/licenses/>.
1717

1818
"""Driver for GPIO ultrasonic sensor."""
19+
import sys
20+
from os.path import dirname
21+
sys.path.append(dirname(__file__))
1922

2023
import time
2124
import wiringpi

02_Code/PDC_python/drivers/mcp3008.py renamed to 02_Code/FSEDevBoard/FseDevBoard/mcp3008.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# along with FSE 2018. If not, see <http://www.gnu.org/licenses/>.
1717

1818
"""Interface to Analog to Digital Converters."""
19+
import sys
20+
from os.path import dirname
21+
sys.path.append(dirname(__file__))
1922

2023
import time
2124
import spidev

02_Code/PDC_python/drivers/pca9685.py renamed to 02_Code/FSEDevBoard/FseDevBoard/pca9685.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
# GNU General Public License for more details.
1414
#
1515
# You should have received a copy of the GNU General Public License
16+
import sys
17+
from os.path import dirname
18+
sys.path.append(dirname(__file__))
1619

17-
from smbus import SMBus
20+
from smbus2 import SMBus
1821
from gpio_manager import GPIO_Manager
19-
import os
22+
#import os
2023
import time
21-
import sys
24+
#import sys
2225
import logging
2326
import math
2427

02_Code/PDC_python/drivers/pushbutton.py renamed to 02_Code/FSEDevBoard/FseDevBoard/pushbutton.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
# along with FSE 2019. If not, see <http://www.gnu.org/licenses/>.
1717

1818
"""Driver for a pushbutton."""
19+
import sys
20+
from os.path import dirname
21+
sys.path.append(dirname(__file__))
1922

2023
import time
21-
2224
import wiringpi
2325
from gpio_manager import GPIO_Manager
2426

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
# GNU General Public License for more details.
1414
#
1515
# You should have received a copy of the GNU General Public License
16+
import sys
17+
from os.path import dirname
18+
sys.path.append(dirname(__file__))
1619

1720

1821
from pca9685 import PWM_Driver
19-
import os
2022
import time
2123
import sys
2224

0 commit comments

Comments
 (0)