Alarm Code

The alarm code is available in both Arduino and CircuitPython version. They both work in the same general way, which is:

  1. Wait for a button to be pressed.
  2. Provide a countdown timer with the NeoPixels. (the diary should be placed on Circuit Playground during countdown)
  3. Read and store the value of the light sensor.
  4. Loop forever reading the light sensor value.
  5. If value exceeds the stored value from step 3, sound the alarm.
Last updated on 2017-12-04 at 01.14.40 PM Published on 2016-10-11 at 08.56.04 PM