poelzi / openchronos Goto Github PK
View Code? Open in Web Editor NEWOpenChronos - Open Source Firmware for the TI EZ430-Chronos Watch
OpenChronos - Open Source Firmware for the TI EZ430-Chronos Watch
In display.h the constant LCD_UNIT_L1_PER_S_MASK should be defined as:
instead of the orginal:
I think a recent patch made "loct" (keylock message) turn into "lo?t".
I believe SHA: 37c10e2 changes a c to ? in display1.c although that's probably a c the message shouldn't be using anyway. I haven't looked deep enough to see where the message is generated and if that's done correctly.
Could it be possible that the skew formula might be wrong? More precisely if BASE_YEAR is 2001 then (pdate->year - BASE_YEAR)/4 does not kick in leap years but 1 year after, so it should be something like:
u8 skew;
skew = (pdate->year - BASE_YEAR)+(pdate->year - BASE_YEAR + 1)/4;
(easy test - set date to January 1st 2012, it should be SUN and not SAT).
The countdown timer is in some strange units or timer is setup wrong ?
So i have the watch configured with this setup:
OpenChronos config ┃ UP / DOWN / PAGE UP / PAGE DOWN scroll. F8 aborts.
Frequency (X) 902 ( ) 868 ( ) 433
Time display options ( ) 24hr ( ) 12hr (AM/PM) (X) selectable
[ ] Metric only code (-286 bytes)
[X] Fixedpoint (-5078 bytes)
Hardware address: {0xed,0xc0,0xbb,0x25}
[ ] Use LCD Charge Pump (6 bytes)
[X] Use Watchdog (20 bytes)
[ ] Debug
[X] Date: Day of Week (496 bytes)
[X] Test Mode (614 bytes)
Modules
[X] Eggtimer (1480 bytes)
[ ] Phase Clock (918 bytes)
[X] Altitude (1202 bytes)
[X] Combined with alti, gives vertical speed (478 bytes)
[X] Altitude accumulator (1068 bytes)
[ ] Simple example that displays a text (238 bytes)
[ ] Sidereal Time Clock (3418 bytes)
Daylight Saving Time ( ) No DST (X) US/Canada ( ) Mexico ( ) Brazil ( ) EU/UK/Eastern
Europe
( ) Australia ( ) New Zealand
[ ] Information Memory Driver (2934 bytes, requires sidereal clock)
[X] Acceleration (1232 bytes)
[ ] Strength training timer (380 bytes)
[X] Alarm (608 bytes)
[X] Battery (360 bytes)
[X] Clock
[X] Date
[X] Wireless Update
[X] Stop Watch (1202 bytes)
[X] Temperature
[X] Use PPT
[ ] Sync is the only way to set clocks data/time
[X] RFBSL is hidden behind battery
[ ] GPS Functions enabled (doorlock)
[ ] CW Time
and when i scroll through the whole top line, from time to time, it causes the bottom line to not refresh it's contents and you must manually press a bottome row related button to redraw. It is not an immediate thing, but i was just wondering if this was fixable.
Hi. I'm having problems to build OpenChronos. When I try "make config", I get this error:
doragasu@doragasu-C2D:~/src/ez430Chronos/OpenChronos$ make config
python tools/config.py
Traceback (most recent call last):
File "tools/config.py", line 368, in
App.run()
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/apNPSApplication.py", line 25, in run
return npyssafewrapper.wrapper(self.*remove_argument_call_main)
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/npyssafewrapper.py", line 41, in wrapper
wrapper_no_fork(call_function)
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/npyssafewrapper.py", line 96, in wrapper_no_fork
return_code = call_function(_SCREEN)
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/apNPSApplication.py", line 20, in __remove_argument_call_main
return self.main()
File "tools/config.py", line 278, in main
f = F.add(npyscreen.Checkbox, name=field["name"], value=field["value"])
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/fmForm.py", line 290, in add_widget
_args, _keywords)
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/wgcheckbox.py", line 42, in __init
super(Checkbox, self).init(screen, *keywords)
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/wgwidget.py", line 178, in init
self.set_size()
File "/home/doragasu/src/ez430Chronos/OpenChronos/tools/npyscreen/wgwidget.py", line 254, in set_size
raise Exception("Not enough space: max y and x = %s , %s. Height and Width = %s , %s " % (my, mx, self.height, self.width) ) # unsafe. Need to add error here.
Exception: Not enough space: max y and x = 0 , 77. Height and Width = RAISEERROR , 77
make: ** [config] Error 1
I'm trying to build with Ubuntu 10.04 64 bit, GNU make 3.81, msp430-gcc 4.4.3 and python 2.6.5.
Too bad I know nothing about python scripts :(.
Hallo!
Ich weiß, es ist nicht direkt ein PRoblem mit deinem Code, aber da du ja Win7 nutzt solltest du über das selbe Problem gestolpert sein :)
Also ich bekomme bei " make config" immer die Meldung:
File "C:\Python31\lib\curses__init__.py", line 15, in
from _curses import *
ImportError: No module named _curses
make: *** [config] Error 1
Hat vielleicht jemand eine Lösung?
Gruß
switch to urwid
I pulled from origin yesterday and I can't start rfBSL on the watch anymore. I think some time in the past few weeks perhaps some change was introduced that causes this.
Symptoms/procedure:
Start TI control center, choose wireless update, start AP, select fw and start update. When told to start rfbsl on the watch, select rfbsl and press "down". BSL should start. Instead the watch shows "loct". Pressing (not holding) down again displays "open". The messages repeat. rfBSL may well still work, but something makes the button toggle lock instead. ACC and PPT modes work as before.
Changed in config.h: I defined FIXEDPOINT.
Lets imagine I want to start rfbsl mode and do an update:
But when I wait 3-4 seconds before long-pressing "*" it runs!
Day of the week is incorrectly calculated starting in January 2012. (e.g. SUN for Jan 2nd)
Reviewed algorithm from http://web.archive.org/web/20090309071604/http://klausler.com/new-dayofweek.html
Changed BASE_YEAR in logic\date.c:
< #define BASE_YEAR 2001 // not a leap year, so no need to add 1
#define BASE_YEAR 1984
And it appears to correctly calculate the Dotw now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.