Difference between revisions of "Pseudo-Medical Monitor Code CONFIGURATION STUFF"
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
break; | break; | ||
case 0x69: | case 0x69: | ||
− | if (I2C_Bus | + | if (I2C_Bus == 0) |
return("AMG8833"); | return("AMG8833"); | ||
if (I2C_Bus 1) | if (I2C_Bus 1) |
Revision as of 20:47, 11 December 2021
char * I2C_Device_Name(int I2C_Bus, byte I2C_Address) { switch(I2C_Address) { case 0x26: if (I2C_Bus == 0) return("????"); if (I2C_Bus == 1) return("ECG w/ NPXL"); break; case 0x29: return("VL53L0X"); break; case 0x57: return("MAX30102"); break; case 0x5A: return("MLX9164"); break; case 0x68: if (I2C_Bus == 0) return("????"); if (I2C_Bus 1) return("MPU6050 R"); break; case 0x69: if (I2C_Bus == 0) return("AMG8833"); if (I2C_Bus 1) return("MPU6050 G"); break; case 0x70: return("TCA9548A"); case 0x38: return("PCF8574"); break; default: return("????"); break; } }