Admin. nothing significant
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
"PLATFORMIO=60117",
|
||||
"STM32F407xx",
|
||||
"STM32F4",
|
||||
"ECAT",
|
||||
"NOECAT",
|
||||
"STM32F4xx",
|
||||
"ARDUINO=10808",
|
||||
"ARDUINO_ARCH_STM32",
|
||||
|
||||
@@ -15,10 +15,10 @@ board = genericSTM32F407VGT6
|
||||
upload_protocol = stlink
|
||||
debug_tool = stlink
|
||||
debug_build_flags = -O0 -g -ggdb
|
||||
monitor_port = /dev/ttyUSB0
|
||||
monitor_port = COM21
|
||||
monitor_filters = send_on_enter, time, colorize, log2file
|
||||
monitor_speed = 115200
|
||||
build_flags = -Wl,--no-warn-rwx-segment -DECAT
|
||||
build_flags = -Wl,--no-warn-rwx-segment -DNOECAT
|
||||
lib_deps =
|
||||
SPI
|
||||
pilotak/MCP3X21@^1.0.1
|
||||
|
||||
@@ -113,7 +113,7 @@ void cb_get_inputs(void) // Set Master inputs, slave outputs, last operation
|
||||
ads1014_reset();
|
||||
old_I2Cdevice = ADS1014_TYPE;
|
||||
}
|
||||
data0 = ads1014->getValue();
|
||||
data0 = ads1014->getValue();
|
||||
stat = ads1014->isConnected() == 1 ? 0 : 1;
|
||||
break;
|
||||
default: // Not supported
|
||||
@@ -198,8 +198,10 @@ void setup(void)
|
||||
ecat_slv_init(&config);
|
||||
#endif
|
||||
|
||||
#if 0 // Uncomment for commissioning tests
|
||||
#if 1 // Uncomment for commissioning tests
|
||||
// #define only one of the below
|
||||
#define ADS1xxx
|
||||
#undef ADC_MCP3221
|
||||
digitalWrite(outputPin[0], HIGH); // All four output leds should go high
|
||||
digitalWrite(outputPin[1], HIGH);
|
||||
digitalWrite(outputPin[2], HIGH);
|
||||
@@ -211,7 +213,7 @@ void setup(void)
|
||||
ads1014 = new ADS1014(0x48, &Wire2);
|
||||
ads1014_reset();
|
||||
#endif
|
||||
while (1) // Apply voltage over the inputs 0-11 and see response in terminal
|
||||
while (1) // Search I2C bus for devices
|
||||
{
|
||||
int nDevices = 0;
|
||||
for (int i2caddr = 1; i2caddr < 127; i2caddr++)
|
||||
|
||||
Reference in New Issue
Block a user