Admin. nothing significant
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
"PLATFORMIO=60117",
|
"PLATFORMIO=60117",
|
||||||
"STM32F407xx",
|
"STM32F407xx",
|
||||||
"STM32F4",
|
"STM32F4",
|
||||||
"ECAT",
|
"NOECAT",
|
||||||
"STM32F4xx",
|
"STM32F4xx",
|
||||||
"ARDUINO=10808",
|
"ARDUINO=10808",
|
||||||
"ARDUINO_ARCH_STM32",
|
"ARDUINO_ARCH_STM32",
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ board = genericSTM32F407VGT6
|
|||||||
upload_protocol = stlink
|
upload_protocol = stlink
|
||||||
debug_tool = stlink
|
debug_tool = stlink
|
||||||
debug_build_flags = -O0 -g -ggdb
|
debug_build_flags = -O0 -g -ggdb
|
||||||
monitor_port = /dev/ttyUSB0
|
monitor_port = COM21
|
||||||
monitor_filters = send_on_enter, time, colorize, log2file
|
monitor_filters = send_on_enter, time, colorize, log2file
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
build_flags = -Wl,--no-warn-rwx-segment -DECAT
|
build_flags = -Wl,--no-warn-rwx-segment -DNOECAT
|
||||||
lib_deps =
|
lib_deps =
|
||||||
SPI
|
SPI
|
||||||
pilotak/MCP3X21@^1.0.1
|
pilotak/MCP3X21@^1.0.1
|
||||||
|
|||||||
@@ -198,8 +198,10 @@ void setup(void)
|
|||||||
ecat_slv_init(&config);
|
ecat_slv_init(&config);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 // Uncomment for commissioning tests
|
#if 1 // Uncomment for commissioning tests
|
||||||
|
// #define only one of the below
|
||||||
#define ADS1xxx
|
#define ADS1xxx
|
||||||
|
#undef ADC_MCP3221
|
||||||
digitalWrite(outputPin[0], HIGH); // All four output leds should go high
|
digitalWrite(outputPin[0], HIGH); // All four output leds should go high
|
||||||
digitalWrite(outputPin[1], HIGH);
|
digitalWrite(outputPin[1], HIGH);
|
||||||
digitalWrite(outputPin[2], HIGH);
|
digitalWrite(outputPin[2], HIGH);
|
||||||
@@ -211,7 +213,7 @@ void setup(void)
|
|||||||
ads1014 = new ADS1014(0x48, &Wire2);
|
ads1014 = new ADS1014(0x48, &Wire2);
|
||||||
ads1014_reset();
|
ads1014_reset();
|
||||||
#endif
|
#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;
|
int nDevices = 0;
|
||||||
for (int i2caddr = 1; i2caddr < 127; i2caddr++)
|
for (int i2caddr = 1; i2caddr < 127; i2caddr++)
|
||||||
|
|||||||
Reference in New Issue
Block a user