Poll light sensor during startup delay

This commit is contained in:
fruchti 2020-07-15 15:07:03 +02:00
parent d2557e969d
commit 863a720749
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
257
260

View file

@ -3,14 +3,14 @@
int main(void)
{
LED_InitShiftRegister();
LightSensor_Init();
// Delay a bit to make programming easier
for(unsigned int i = 0; i < 10000000; i++)
for(unsigned int i = 0; i < 1000; i++)
{
__asm__ volatile("nop");
LightSensor_Poll();
}
LightSensor_Init();
LED_Init();
int ct = 0;