38 #ifdef CONF_BATTERY_INDICATOR 39 unsigned int battery_refresh_counter = 0;
40 unsigned int battery_refresh_period = 2000;
50 #if defined(CONF_DSENSOR) 54 return (
int)(b / 0x618L);
56 #endif // CONF_DSENSOR 58 #ifdef CONF_BATTERY_INDICATOR 61 #ifdef CONF_RCX_COMPILER 64 #else // CONF_RCX_COMPILER 66 void battery_refresh_core(
void) {
67 #endif // CONF_RCX_COMPILER 76 #endif // CONF_BATTERY_INDICATOR int get_battery_mv()
get current battery voltage
#define dlcd_show(a)
set a segment directly in the LCD buffer
HANDLER_WRAPPER("lcd_refresh_next_byte", "lcd_refresh_next_byte_core")
lcd refresh handler, called from system timer interrupt
Interface: direct control of LCD display.
#define BATTERY_LOW_THRESHOLD_MV
void battery_refresh(void)
cause the battery voltage sensor value to be refreshed
#define dlcd_hide(a)
clear a segment directly in the LCD buffer
Internal Interface: battery handling.
#define BATTERY_NORMAL_THRESHOLD_MV
#define BATTERY
Battery sensor.
Internal LNP Interface: RCX redirected IRQ vectors.
#define ds_scale(x)
mask off bottom 6 bits