Implement a functionality to read out a ambient light level sensor via SPI
Implement a interface to access a ambient light level sensor through a ADC (analog-to-digital converter) via SPI.
Acceptance Criteria
- The interface should be able to retrieve the current light sensor level
- The interface should be able to read out a configurable SPI channel
Todo
-
Define an abstract light sensor interface -
Build a test dummy implementation, until the chips are arrived -
Find a way to access the SPI bus via libbcm2835 -
Find a way to retrieve the current sensor level from a ADC channel on the MCP3008