🔧 LumenPnP RS485 and I2C Bus (#920)

This commit is contained in:
Stephen Hawes 2023-04-24 23:07:53 -04:00 committed by GitHub
parent 8c19d8d41d
commit d43f47ac18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -117,9 +117,9 @@
* Select a serial port to communicate with RS485 protocol
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
//#define RS485_SERIAL_PORT 1
#define RS485_SERIAL_PORT 1
#ifdef RS485_SERIAL_PORT
//#define RS485_BUS_BUFFER_SIZE 128
#define RS485_BUS_BUFFER_SIZE 128
#endif
// Enable the Bluetooth serial interface on AT90USB devices

View file

@ -3396,7 +3396,7 @@
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
//#define EXPERIMENTAL_I2CBUS
#define EXPERIMENTAL_I2CBUS
#if ENABLED(EXPERIMENTAL_I2CBUS)
#define I2C_SLAVE_ADDRESS 0 // Set a value from 8 to 127 to act as a slave
#endif

View file

@ -117,9 +117,9 @@
* Select a serial port to communicate with RS485 protocol
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
//#define RS485_SERIAL_PORT 1
#define RS485_SERIAL_PORT 1
#ifdef RS485_SERIAL_PORT
//#define RS485_BUS_BUFFER_SIZE 128
#define RS485_BUS_BUFFER_SIZE 128
#endif
// Enable the Bluetooth serial interface on AT90USB devices