Go to the documentation of this file.
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
Internal Interface: battery handling.
int get_battery_mv()
get current battery voltage
HANDLER_WRAPPER("lcd_refresh_next_byte", "lcd_refresh_next_byte_core")
lcd refresh handler, called from system timer interrupt
void battery_refresh(void)
cause the battery voltage sensor value to be refreshed
#define BATTERY_LOW_THRESHOLD_MV
#define dlcd_show(a)
set a segment directly in the LCD buffer
#define BATTERY_NORMAL_THRESHOLD_MV
Internal LNP Interface: RCX redirected IRQ vectors.
Interface: direct control of LCD display.
#define dlcd_hide(a)
clear a segment directly in the LCD buffer
#define BATTERY
Battery sensor.
#define ds_scale(x)
mask off bottom 6 bits
Generated for brickOS Kernel Developer by
1.8.16