Commit Graph

23 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 773de62bd7 Merge branch 'ticgit' of git://git.luon.net/users/paul/wordclock into protothreads 2012-01-06 22:53:02 +01:00
Paul van Tilburg 7fb3c08dd0 added ticket 1325886602_add-deperate-hardware-config-header-file-to-enable-hw-features_603 2012-01-06 22:50:02 +01:00
Paul van Tilburg b6ff17bf3f creating the ticgit-ng branch 2012-01-06 22:41:37 +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 4380334947 Updated readme.txt 2012-01-04 22:59:06 +01:00
Admar Schoonen 3250a3c0cd Added simple shell script to launch a terminal (screen) to view debug output. 2012-01-04 22:57:01 +01:00
Paul van Tilburg e765476c2a Ignore the hardware dir/symlink 2011-12-31 00:42:14 +01:00
Admar Schoonen ba682a0e7b Added readme.txt 2011-12-31 00:39:20 +01:00
Admar Schoonen ecb74dca6e Simple test for ambient light sensor (uses Arduino Mega2560 board) 2011-12-31 00:37:39 +01:00
Admar Schoonen 82ac306a7d Port to Arduino 1.0: DS1302 library
Oops! Forgot to add changes to DS1302 library.
2011-12-30 22:54:04 +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
Paul van Tilburg a6c368092c Added initial gitignore file 2011-12-30 21:05:35 +01:00
Paul van Tilburg a6c55465fa Fix target name and build platform root. 2011-10-30 22:43:52 +01:00
Paul van Tilburg 43235ddd76 Code cleanups. 2011-10-30 22:33:17 +01:00
Paul van Tilburg 892c325c84 Changed night brightness to 15 (of 20). 2011-10-30 22:33:09 +01:00
Paul van Tilburg 689da691e8 Add prototypes of functions so that it compiles. 2011-10-30 22:32:47 +01:00
Paul van Tilburg a427097da4 Disabled debugging for LED updates (removes flickering). 2011-10-30 22:32:19 +01:00
Paul van Tilburg 7c957bafdf Added makefiles for building. 2011-10-30 22:31:42 +01:00
Paul van Tilburg ffb1770e28 Imported initial code by Doug Jackson (slightly modified by Admar). 2011-10-30 22:27:58 +01:00