Log: Driverboardcontroller
This commit is contained in:
@@ -56,6 +56,7 @@ void DriverBoardPinController::deactivate(items::DriverBoardItem &driver_board_i
|
|||||||
|
|
||||||
void DriverBoardPinController::select_address(uint8_t address)
|
void DriverBoardPinController::select_address(uint8_t address)
|
||||||
{
|
{
|
||||||
|
CLOG(DEBUG, OUTPUT_LOGGER) << "Select address " << address;
|
||||||
address = address % 8;
|
address = address % 8;
|
||||||
write_pin(this->address_pins[0], address & 0b001);
|
write_pin(this->address_pins[0], address & 0b001);
|
||||||
write_pin(this->address_pins[1], address & 0b010);
|
write_pin(this->address_pins[1], address & 0b010);
|
||||||
@@ -64,6 +65,7 @@ void DriverBoardPinController::select_address(uint8_t address)
|
|||||||
|
|
||||||
void DriverBoardPinController::select_mux(uint8_t mux)
|
void DriverBoardPinController::select_mux(uint8_t mux)
|
||||||
{
|
{
|
||||||
|
CLOG(DEBUG, OUTPUT_LOGGER) << "Select mux " << mux;
|
||||||
write_pin(this->mux_enable_pins[mux], 0);
|
write_pin(this->mux_enable_pins[mux], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user