Commit Graph

12 Commits

Author SHA1 Message Date
Admar Schoonen 6de020aed1 Added settings_example.h; user must now copy this to settings.h first!
settings.h contains hardware specific settings and user preferences.
settings.h is ignored in git repository.
2012-01-08 20:42:05 +01:00
Admar Schoonen ff98f561af Fixes strange crash (?) + printdebug level support 2012-01-08 17:39:07 +01:00
Admar Schoonen 17f6d215ef Added simple serial get/set time parser 2012-01-08 01:39:30 +01:00
Admar Schoonen cad09796c2 New mapping function for ambient light sensor 2012-01-07 23:46:43 +01:00
Admar Schoonen c5561f8aaf Split up wordclock thread into multiple threads
wordclock thread is now reduced to only taking care of displaying the time;
blink thread and lightsensor thread take care of blinking led and reading
lightsensor (and calculating new brightness value).
2012-01-07 10:20:42 +01:00
Admar Schoonen f74e4aedca Some comsmetic changes 2012-01-07 09:23:56 +01:00
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