- Pressing switch must update ThingSpeak so use interrupts. Blues switch on Nucleo
- Create function and link with timer-tick to read all sensors.
Initial plan was to update data each second but with DS1820 and MS5803 it isn't possible because reading peripheral over different I2C is to slow so I changed update time to 3 seconds.
Ticker flipper;
InterruptIn mybutton(USER_BUTTON);
while(1){ ... }
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.