diff --git a/devices/video/displayid.cpp b/devices/video/displayid.cpp index ef11333..4271757 100644 --- a/devices/video/displayid.cpp +++ b/devices/video/displayid.cpp @@ -77,6 +77,14 @@ DisplayID::DisplayID() this->data_ptr = 0; } +DisplayID::DisplayID(uint8_t std_code, uint8_t ext_code) +{ + this->id_kind = Disp_Id_Kind::AppleSense; + + this->std_sense_code = std_code; + this->ext_sense_code = ext_code; +} + uint8_t DisplayID::read_monitor_sense(uint8_t levels, uint8_t dirs) { uint8_t scl, sda; diff --git a/devices/video/displayid.h b/devices/video/displayid.h index c518dce..e710ed3 100644 --- a/devices/video/displayid.h +++ b/devices/video/displayid.h @@ -56,6 +56,7 @@ enum I2CState : uint8_t { class DisplayID { public: DisplayID(); + DisplayID(uint8_t std_code, uint8_t ext_code); ~DisplayID() = default; uint8_t read_monitor_sense(uint8_t levels, uint8_t dirs);