Closed J-Duforest closed 8 years ago
Hey @JulzDuf , correct, the PulseOximeter component of the library is based on a polling strategy (the magic happens in PulseOximeter::checkSample()). The interrupt enable register (addr=0x01) is left untouched, which means it retains its POR state (interrupt not enabled). Handling the interrupt requires a bit more code and since I wanted the implementation of the PulseOximeter component to be minimal, I decided to use polling.
If you want to use an interrupt-driven approach:
Lot more is left to be described, in particular if you want to retain the high level functionalities of the PulseOximeter component (which is not really suitable for subclassing) or if you want to exploit the FIFO feature offered by the chip.
Dear Sir,
You did mistake with address. It is not my message:)
From: zahrahalwachi [mailto:notifications@github.com] Sent: Sunday, March 05, 2017 9:17 PM To: oxullo/Arduino-MAX30100 Cc: Subscribed Subject: Re: [oxullo/Arduino-MAX30100] About the data reading (#7)
Hello @JulzDuf https://github.com/JulzDuf did you find a way to get the interrupts?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view https://github.com/oxullo/Arduino-MAX30100/issues/7#issuecomment-284252776 it on GitHub, or mute https://github.com/notifications/unsubscribe-auth/AYOV4WKdYLTkzQZLtAh-YqH55P_VULmmks5riwpGgaJpZM4KjUmr the thread. https://github.com/notifications/beacon/AYOV4fKCtIBd_DuM4H13wcm84BlkL9wtks5riwpGgaJpZM4KjUmr.gif
Hi! I've looked in your library and I see that you have the interrupt register progrmmed but never used in the library.
The way I understand your program, the arduino asks regurlarly for the data of the MAX30100 instead of asking when receiving an interrupt.
Am I misunderstanding the way it works? If not, do you have a solution to enable the use of those interrupts?
Thanks in Advance!