Functional version of seizure detector, except it only uses an analogue input, as my accelerometer module hasn't arrived yet.  Alarm does not latch, which is probably something I would make it do for the final version.