started building control module software from spi test code