Hi there TI community,
I have been working with the Chronos watch code. I would like to have a visual display of the acceleration data onto the watch face while at the same time transmitting the acceleration data with the "ACC" function. I have looked at the "RFsimplicity" code and it seems that if I was able to just change line 1 from displaying the clock data, to then change it to displaying the "ACC" data. I changed the following lines of code in the "rfsimplicity" file:
(CODE LINE 220) :
void start_simpliciti_tx_only(simpliciti_mode_t mode)
{
// Display time in line 1
clear_line(LINE1);
fptr_lcd_function_line1(LINE1, DISPLAY_LINE_CLEAR);
display_acceleration(LINE1, DISPLAY_LINE_UPDATE_FULL); //edit line.
// dislplay_time(LINE1, DISPLAY_LINE_UPDATE_FULL); // this line was the original code
....
I also edited this line so that the Acceleration data will be refreshed every second instead of the clock
....
(line 429):
// Update clock every 1/1 second
if (display.flag.update_time)
{
display_acceleration(LINE1, DISPLAY_LINE_UPDATE_PARTIAL); edit line
display.flag.update_time = 0;
// Service watchdog
WDTCTL = WDTPW + WDTIS__512K + WDTSSEL__ACLK + WDTCNTCL;
}
....
the watch will display the acceleration data normally before the watch starts the transmission,
LINE1: Y0.00
LINE2: acc
once i press the transmit button (down arrow) the clock no longer appears on line 1 goes away and is replaced with
LINE1 : (BLANK)(BLANK) . (BLANK)(BLANK) which is the format of the "acceleration.c" function but it does not display any numbers.
LINE2: ACC
can anyone tell me why the acceleration data is not being displayed while i transmit?
Thanks for the help
--David