Commit Graph

41 Commits

Author SHA1 Message Date
Paul van Tilburg d370cbd97b
Remove unneeded file 2020-04-14 13:33:11 +02:00
Paul van Tilburg 88ec54a4da Reverted the output of the I-commands change, they fall under G 2012-01-09 23:41:13 +01:00
Paul van Tilburg ed042efaf2 Merge branch 'master' of git.luon.net:users/admar/stoptime and resolve conflicts 2012-01-09 23:32:33 +01:00
Admar Schoonen b81d180d2e Bugfix 'round' display mode, add some commands 2012-01-09 23:14:32 +01:00
Paul van Tilburg 0424291736 Some commandline interface tweaks
* Print as feedback what is being set via the S-command.
* Small fix for setting the day of the week.
* Changed the printed output of the I-command for consistency.
2012-01-09 19:55:57 +01:00
Paul van Tilburg f627ee5327 Moved tools to a separate directory 2012-01-09 19:35:19 +01:00
Admar Schoonen 9db65799da Added get/set date + lightsensor reading, bugfixes
Added commands to get / set date from rtc.
Added commands to get current and average reading from light sensor.
Fixed bug in display mode 'round'.
2012-01-08 22:44:06 +01:00
Admar Schoonen 6ac27a1183 Added build option to round() time instead
set DISPLAYTIME_MODE to round to have maximum error of 2.5 minutes, set to floor
to have traditional display mode with maximum error of 5 minutes
2012-01-08 21:36:59 +01:00
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 c5dc50fcdd C-kermit script to communicate with clock 2012-01-08 01:41:14 +01:00
Admar Schoonen 17f6d215ef Added simple serial get/set time parser 2012-01-08 01:39:30 +01:00
Admar Schoonen 9511765d44 Oops. This belongs to previous commit. 2012-01-08 01:38:59 +01:00
Admar Schoonen cad09796c2 New mapping function for ambient light sensor 2012-01-07 23:46:43 +01:00
Admar Schoonen 05272f8ee3 Removing ticgit stuff 2012-01-07 12:35:24 +01:00
Admar Schoonen 18b32613e0 Added -Wall compiler flag 2012-01-07 12:34:16 +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 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