restructured directories to make more sense of modules and sub-modules

This commit is contained in:
2023-05-11 17:59:06 -04:00
parent a8674f073e
commit 327f6cadee
61 changed files with 97 additions and 110 deletions

View File

@@ -2,7 +2,7 @@
Module to test the GPIO input on the Raspberry Pi.
"""
from collections import deque
from pocket_friends.game_files.io_helpers.gpio_handler import Constants, GPIOHandler
from pocket_friends.game_files.io.gpio_handler import Constants, GPIOHandler
def button_test():

View File

@@ -8,13 +8,13 @@ import pygame
import time
from .button_test import button_test
from .menus import Menu
from pocket_friends.game_files.io_helpers.gpio_handler import GPIOHandler, Constants
from pocket_friends.game_files.io.gpio_handler import GPIOHandler, Constants
try:
importlib.util.find_spec('RPi.GPIO')
import RPi.GPIO as GPIO
except ImportError:
import pocket_friends.game_files.io_helpers.fake_gpio as GPIO
import pocket_friends.game_files.io.fake_gpio as GPIO
# Global variable to keep track of the current menu.
menu = 'main'