firmware: fix input numberingch5 was shorting all inputs

This commit is contained in:
2019-10-21 23:05:00 +02:00
parent 95f4f5dd71
commit d28508f7bf
2 changed files with 22 additions and 5 deletions

View File

@@ -6,6 +6,11 @@
#include "stm32f1xx_hal.h"
#define BD_INPUT_MUTE (1<<4)
#define BD_INPUT_ALL (1<<5)
// number can either be 0-5 (meaning CHANNEL1 to CHANNEL 6)
// or BD_INPUT_MUTE or BD_INPUT_SHORT
void bd_set_input(I2C_HandleTypeDef * handle, uint8_t number);
#define BD_MAX_GAIN 20 // gain in db