Possible better solutions: - main.c move the methods to components/badge/ - modules/deepsleep.py expose the needed pins via badge.input_pins