Core 1 Event Mechanism

There should be a way to get card10 into a low power sleep mode from (py)cardium. Coupled with this, there needs to be a way to wake core1 back up. This should be made into a general event handling mechanism that allows polling and blocking on single or multiple event sources.

MicroPython already contains a uselect library that might play into this. We also already have an interrupt from epicardium to core1 using a timer. This is used for ^C handling.

Event sources that should be supported:

  • Serial (UART, CDC ACM, Bluetooth)
  • Push Buttons
  • BMA400 Tap Detection
  • BHI160 Activity Detection
  • ECG? (waiting for #28)
  • Bluetooth
  • GPIOs (Wristband #31 (closed) & SA #32)
Edited by rahix