Commit Graph

6 Commits

Author SHA1 Message Date
Admar Schoonen 38da3b00c1 Multithreading + key repeat delay
* split main loop in two separate threads, using ProtoThreads 1.4 (see
  http://arduinocollective.com/2009/12/05/arduino-threading/ and
  http://www.sics.se/~adam/pt/)
* implemented simple key repeat delay: first delay is 1 second, after that it is
  only 200 ms
* changed indenting (since multithreading was such a big change in it self, it
  was relatively painless to do it now)
2012-01-07 01:35:54 +01:00
Admar Schoonen 9e158c13fd Rough parameter tuning + reduced flickering
* rough parameter tuning for TEPT4400 light sensor
* reduced flickering at low brightness values by reducing number of brightness
  levels
2012-01-06 22:32:48 +01:00
Admar Schoonen fc2494631a Added option to skip selftest
Set #define SKIPSELFTEST 1 to skip selftest. Saves a lot of time while
developing / debugging.
2012-01-05 22:05:24 +01:00
Admar Schoonen 6cf277c1fe Ignore first sample from ADC
ADC of AVR contains a 'bug' that causes first sample to be corrupt. Fixed in
code now.
2012-01-04 23:13:05 +01:00
Admar Schoonen ff698171aa Implemented dimming based on amount of ambient light.
Requires a phototranistor (TEPT4400) and series resistor (I used 2.2 kOhm) on
ADC0 (pin 23). Range is quite limited though, so will probably need to modify
hardware a bit and do some more software tuning.
2012-01-04 23:01:43 +01:00
Admar Schoonen cc6c0940f6 Port to Arduino 1.0
* renamed .pde files to .ino
* adapted source and makefiles
2011-12-30 22:43:48 +01:00