Skip to content

Commit

Permalink
turn off when battery is low
Browse files Browse the repository at this point in the history
switch off at 3.5V. remove python bq and fusb drivers
  • Loading branch information
ChrisDick committed Jul 23, 2024
1 parent 17b9261 commit fa62c3c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 1,358 deletions.
2 changes: 1 addition & 1 deletion drivers/tildagon_power/bq25895/bq25895.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void write_scaled( bq_state_t* state, scaled_register_t scaledregister, f
void bq_init( bq_state_t* state )
{
write_bits( state, register_reset, 1 );
uint8_t write_buffer[5] = { 0x02, 0x60, 0x1A, 0x18, 0x00 };
uint8_t write_buffer[5] = { 0x02, 0x60, 0x10, 0x18, 0x00 };
mp_machine_i2c_buf_t buffer = { .len = 5, .buf = write_buffer };
tildagon_mux_i2c_transaction( state->mux_port, ADDRESS, 1, &buffer, WRITE );
write_buffer[0] = 0x07;
Expand Down
Loading

0 comments on commit fa62c3c

Please sign in to comment.