Skip to content

Commit

Permalink
Merge pull request #377 from DCC-EX/I2CDFplayer
Browse files Browse the repository at this point in the history
I2C dfplayer
  • Loading branch information
Ash-4 authored Dec 30, 2023
2 parents 330a85e + 0feb2c7 commit ecde774
Show file tree
Hide file tree
Showing 5 changed files with 891 additions and 2 deletions.
5 changes: 4 additions & 1 deletion I2CManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ static const FSH * guessI2CDeviceType(uint8_t address) {
return F("Time-of-flight sensor");
else if (address >= 0x3c && address <= 0x3d)
return F("OLED Display");
else if (address >= 0x48 && address <= 0x57) // Henkk: Added SC16IS752 UART detection
return F("SC16IS752 UART");
else if (address >= 0x48 && address <= 0x4f)
return F("Analogue Inputs or PWM");
else if (address >= 0x40 && address <= 0x4f)
Expand All @@ -64,6 +66,7 @@ static const FSH * guessI2CDeviceType(uint8_t address) {
return F("Real-time clock");
else if (address >= 0x70 && address <= 0x77)
return F("I2C Mux");
else if (address >= 0x90 && address <= 0xAE);
else
return F("?");
}
Expand Down Expand Up @@ -363,4 +366,4 @@ void I2CAddress::toHex(const uint8_t value, char *buffer) {

/* static */ bool I2CAddress::_addressWarningDone = false;

#endif
#endif
3 changes: 2 additions & 1 deletion IODevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#define iodevice_h

// Define symbol DIAG_IO to enable diagnostic output
//#define DIAG_IO Y
//#define DIAG_IO


// Define symbol DIAG_LOOPTIMES to enable CS loop execution time to be reported
//#define DIAG_LOOPTIMES
Expand Down
Loading

0 comments on commit ecde774

Please sign in to comment.