Name change of E7000
This commit is contained in:
139
Cards/EaserCAT-7000-DIO+I2C/Firmware/.vscode/c_cpp_properties.json
vendored
Executable file
139
Cards/EaserCAT-7000-DIO+I2C/Firmware/.vscode/c_cpp_properties.json
vendored
Executable file
@@ -0,0 +1,139 @@
|
|||||||
|
//
|
||||||
|
// !!! WARNING !!! AUTO-GENERATED FILE!
|
||||||
|
// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
|
||||||
|
// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
|
||||||
|
//
|
||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "PlatformIO",
|
||||||
|
"includePath": [
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/include",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/MyMCP3221",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes-esi",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/ADS1X15",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/MCP3X21",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Wire/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SPI/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino/avr",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc/LL",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/STM32F4xx",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/open-amp/lib/include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/libmetal/lib/include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/virtual_driver",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/Core/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/DSP/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/DSP/PrivateInclude",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F407V(E-G)T_F417V(E-G)T",
|
||||||
|
"C:/Users/Hakan/.platformio/lib/RunningAverage",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/CMSIS_DSP/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/EEPROM/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/IWatchdog/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Keyboard/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Mouse/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/RGB_LED_TLC59731/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Servo/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SoftwareSerial/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SubGhz/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/src",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"browse": {
|
||||||
|
"limitSymbolsToIncludedHeaders": true,
|
||||||
|
"path": [
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/include",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/MyMCP3221",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes-esi",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/ADS1X15",
|
||||||
|
"Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/MCP3X21",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Wire/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SPI/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino/avr",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc/LL",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/STM32F4xx",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/open-amp/lib/include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/libmetal/lib/include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/virtual_driver",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/Core/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/DSP/Include",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-cmsis/CMSIS/DSP/PrivateInclude",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/cores/arduino",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F407V(E-G)T_F417V(E-G)T",
|
||||||
|
"C:/Users/Hakan/.platformio/lib/RunningAverage",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/CMSIS_DSP/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/EEPROM/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/IWatchdog/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Keyboard/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Mouse/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/RGB_LED_TLC59731/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/Servo/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SoftwareSerial/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/SubGhz/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/src",
|
||||||
|
"C:/Users/Hakan/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/src",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"defines": [
|
||||||
|
"PLATFORMIO=60117",
|
||||||
|
"STM32F407xx",
|
||||||
|
"STM32F4",
|
||||||
|
"NO_ECAT",
|
||||||
|
"ADS1xxx",
|
||||||
|
"STM32F4xx",
|
||||||
|
"ARDUINO=10808",
|
||||||
|
"ARDUINO_ARCH_STM32",
|
||||||
|
"NDEBUG",
|
||||||
|
"ARDUINO_GENERIC_F407VGTX",
|
||||||
|
"BOARD_NAME=\"GENERIC_F407VGTX\"",
|
||||||
|
"HAL_UART_MODULE_ENABLED",
|
||||||
|
"USE_HAL_DRIVER",
|
||||||
|
"USE_FULL_LL_DRIVER",
|
||||||
|
"VARIANT_H=\"variant_generic.h\"",
|
||||||
|
"VECT_TAB_OFFSET=0x0",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"cStandard": "gnu17",
|
||||||
|
"cppStandard": "gnu++17",
|
||||||
|
"compilerPath": "C:/Users/Hakan/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc.exe",
|
||||||
|
"compilerArgs": [
|
||||||
|
"-mcpu=cortex-m4",
|
||||||
|
"-mthumb",
|
||||||
|
"-mfpu=fpv4-sp-d16",
|
||||||
|
"-mfloat-abi=hard",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
||||||
@@ -12,11 +12,11 @@
|
|||||||
"type": "platformio-debug",
|
"type": "platformio-debug",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "PIO Debug",
|
"name": "PIO Debug",
|
||||||
"executable": "/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
"executable": "Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
||||||
"projectEnvName": "genericSTM32F407VGT6",
|
"projectEnvName": "genericSTM32F407VGT6",
|
||||||
"toolchainBinDir": "/home/debian/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
"toolchainBinDir": "C:/Users/Hakan/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"svdPath": "/home/debian/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd",
|
"svdPath": "C:/Users/Hakan/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd",
|
||||||
"preLaunchTask": {
|
"preLaunchTask": {
|
||||||
"type": "PlatformIO",
|
"type": "PlatformIO",
|
||||||
"task": "Pre-Debug"
|
"task": "Pre-Debug"
|
||||||
@@ -26,21 +26,21 @@
|
|||||||
"type": "platformio-debug",
|
"type": "platformio-debug",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "PIO Debug (skip Pre-Debug)",
|
"name": "PIO Debug (skip Pre-Debug)",
|
||||||
"executable": "/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
"executable": "Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
||||||
"projectEnvName": "genericSTM32F407VGT6",
|
"projectEnvName": "genericSTM32F407VGT6",
|
||||||
"toolchainBinDir": "/home/debian/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
"toolchainBinDir": "C:/Users/Hakan/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"svdPath": "/home/debian/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd"
|
"svdPath": "C:/Users/Hakan/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "platformio-debug",
|
"type": "platformio-debug",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "PIO Debug (without uploading)",
|
"name": "PIO Debug (without uploading)",
|
||||||
"executable": "/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
"executable": "Z:/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/build/genericSTM32F407VGT6/firmware.elf",
|
||||||
"projectEnvName": "genericSTM32F407VGT6",
|
"projectEnvName": "genericSTM32F407VGT6",
|
||||||
"toolchainBinDir": "/home/debian/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
"toolchainBinDir": "C:/Users/Hakan/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"svdPath": "/home/debian/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd",
|
"svdPath": "C:/Users/Hakan/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd",
|
||||||
"loadMode": "manual"
|
"loadMode": "manual"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
@@ -18,8 +18,8 @@ debug_build_flags = -O0 -g -ggdb
|
|||||||
monitor_port = COM19
|
monitor_port = COM19
|
||||||
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 -DNO_ECAT -DADS1xxx
|
||||||
lib_deps =
|
lib_deps =
|
||||||
SPI
|
SPI
|
||||||
robtillaart/ADS1X15@^0.5.1
|
|
||||||
pilotak/MCP3X21@^1.0.1
|
pilotak/MCP3X21@^1.0.1
|
||||||
|
robtillaart/ADS1X15@^0.5.2
|
||||||
@@ -22,9 +22,15 @@ uint32_t I2C_restarts = 0;
|
|||||||
#include "Wire.h"
|
#include "Wire.h"
|
||||||
TwoWire Wire2(PB11, PB10);
|
TwoWire Wire2(PB11, PB10);
|
||||||
|
|
||||||
|
#ifdef MCP3221
|
||||||
#include "MyMCP3221.h"
|
#include "MyMCP3221.h"
|
||||||
MyMCP3221 mcp3221_0(0x48, &Wire2);
|
MyMCP3221 mcp3221_0(0x48, &Wire2);
|
||||||
MyMCP3221 mcp3221_7(0x4f, &Wire2);
|
MyMCP3221 mcp3221_7(0x4f, &Wire2);
|
||||||
|
#endif
|
||||||
|
#ifdef ADS1xxx
|
||||||
|
#include "ADS1X15.h"
|
||||||
|
ADS1115 ads1115(0x48, &Wire2);
|
||||||
|
#endif
|
||||||
|
|
||||||
#define bitset(byte, nbit) ((byte) |= (1 << (nbit)))
|
#define bitset(byte, nbit) ((byte) |= (1 << (nbit)))
|
||||||
#define bitclear(byte, nbit) ((byte) &= ~(1 << (nbit)))
|
#define bitclear(byte, nbit) ((byte) &= ~(1 << (nbit)))
|
||||||
@@ -49,9 +55,15 @@ void cb_get_inputs(void) // Set Master inputs, slave outputs, last operation
|
|||||||
float scale = Obj.VoltageScale;
|
float scale = Obj.VoltageScale;
|
||||||
if (scale == 0.0)
|
if (scale == 0.0)
|
||||||
scale = 1.0;
|
scale = 1.0;
|
||||||
|
#ifdef MCP3221
|
||||||
int data0 = mcp3221_0.getData();
|
int data0 = mcp3221_0.getData();
|
||||||
int stat;
|
int stat = mcp3221_0.ping();
|
||||||
if ((stat = mcp3221_0.ping()) == 0)
|
#endif
|
||||||
|
#ifdef ADS1xxx
|
||||||
|
int data0 = ads1115.readADC_Differential_0_1();
|
||||||
|
int stat = ads1115.isConnected();
|
||||||
|
#endif
|
||||||
|
if (stat == 0)
|
||||||
{ // Read good value
|
{ // Read good value
|
||||||
Obj.CalculatedVoltage = scale * data0 + Obj.VoltageOffset; //
|
Obj.CalculatedVoltage = scale * data0 + Obj.VoltageOffset; //
|
||||||
Obj.RawData = data0; // Raw voltage, read by ADC
|
Obj.RawData = data0; // Raw voltage, read by ADC
|
||||||
@@ -121,24 +133,46 @@ void setup(void)
|
|||||||
|
|
||||||
Wire2.begin();
|
Wire2.begin();
|
||||||
Wire2.setClock(I2C_BUS_SPEED);
|
Wire2.setClock(I2C_BUS_SPEED);
|
||||||
|
#ifdef ADS1xxx
|
||||||
|
ads1115.begin();
|
||||||
|
ads1115.setGain(1); // 4.096V
|
||||||
|
ads1115.setMode(1); // Single
|
||||||
|
ads1115.setDataRate(7);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ECAT
|
#ifdef ECAT
|
||||||
ecat_slv_init(&config);
|
ecat_slv_init(&config);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 // Uncomment for commissioning tests
|
#if 1 // Uncomment for commissioning tests
|
||||||
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);
|
||||||
digitalWrite(outputPin[3], HIGH);
|
digitalWrite(outputPin[3], HIGH);
|
||||||
while (1) // Apply voltage over the inputs 0-11 and see response in terminal
|
while (1) // Apply voltage over the inputs 0-11 and see response in terminal
|
||||||
{
|
{
|
||||||
|
int nDevices = 0;
|
||||||
|
for (int i2caddr = 0; i2caddr < 127; i2caddr++)
|
||||||
|
{
|
||||||
|
Wire2.beginTransmission(i2caddr);
|
||||||
|
int stat = Wire2.endTransmission();
|
||||||
|
if (stat == 0)
|
||||||
|
{
|
||||||
|
Serial1.printf("I2C device found at address 0x%2x\b", i2caddr);
|
||||||
|
nDevices++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Serial1.printf("Found %d devices\n", nDevices);
|
||||||
|
#ifdef MCP3221
|
||||||
Serial1.printf("I2C status=%d rawdata=%d ", mcp3221_0.ping(), mcp3221_0.getData());
|
Serial1.printf("I2C status=%d rawdata=%d ", mcp3221_0.ping(), mcp3221_0.getData());
|
||||||
|
#endif
|
||||||
|
#ifdef ADS1xxx
|
||||||
|
Serial1.printf("I2C status=%d rawdata=%d ", ads1115.isConnected() ? 0 : -1, ads1115.readADC_Differential_0_1());
|
||||||
|
#endif
|
||||||
for (int i = 0; i < 12; i++)
|
for (int i = 0; i < 12; i++)
|
||||||
Serial1.printf("%u", digitalRead(inputPin[i]));
|
Serial1.printf("%u", digitalRead(inputPin[i]));
|
||||||
Serial1.println();
|
Serial1.println();
|
||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -1,136 +0,0 @@
|
|||||||
//
|
|
||||||
// !!! WARNING !!! AUTO-GENERATED FILE!
|
|
||||||
// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
|
|
||||||
// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
|
|
||||||
//
|
|
||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "PlatformIO",
|
|
||||||
"includePath": [
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/include",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes-esi",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/MyMCP3221",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/MCP3X21",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/ADS1X15",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Wire/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SPI/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino/avr",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc/LL",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/STM32F4xx",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/open-amp/lib/include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/libmetal/lib/include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/virtual_driver",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/Core/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/DSP/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/DSP/PrivateInclude",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F407V(E-G)T_F417V(E-G)T",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/CMSIS_DSP/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/EEPROM/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/IWatchdog/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Keyboard/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Mouse/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/RGB_LED_TLC59731/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Servo/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SoftwareSerial/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SubGhz/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/src",
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"browse": {
|
|
||||||
"limitSymbolsToIncludedHeaders": true,
|
|
||||||
"path": [
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/include",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/src",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes-esi",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/soes",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/lib/MyMCP3221",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/MCP3X21",
|
|
||||||
"/mnt/server/src/MyOwnEtherCATDevice/Cards/EaserCAT-7000-DIO+THCAD+I2C/Firmware/.pio/libdeps/genericSTM32F407VGT6/ADS1X15",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Wire/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SPI/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino/avr",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino/stm32",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/inc/LL",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/STM32F4xx_HAL_Driver/Src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/STM32F4xx",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/open-amp/lib/include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/libmetal/lib/include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Middlewares/OpenAMP/virtual_driver",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/Core/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/DSP/Include",
|
|
||||||
"/home/debian/.platformio/packages/framework-cmsis/CMSIS/DSP/PrivateInclude",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/cores/arduino",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F407V(E-G)T_F417V(E-G)T",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/CMSIS_DSP/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/EEPROM/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/IWatchdog/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Keyboard/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Mouse/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/RGB_LED_TLC59731/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/Servo/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SoftwareSerial/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SrcWrapper/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/SubGhz/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/USBDevice/src",
|
|
||||||
"/home/debian/.platformio/packages/framework-arduinoststm32/libraries/VirtIO/src",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"defines": [
|
|
||||||
"PLATFORMIO=60117",
|
|
||||||
"STM32F407xx",
|
|
||||||
"STM32F4",
|
|
||||||
"ECAT",
|
|
||||||
"STM32F4xx",
|
|
||||||
"ARDUINO=10808",
|
|
||||||
"ARDUINO_ARCH_STM32",
|
|
||||||
"NDEBUG",
|
|
||||||
"ARDUINO_GENERIC_F407VGTX",
|
|
||||||
"BOARD_NAME=\"GENERIC_F407VGTX\"",
|
|
||||||
"HAL_UART_MODULE_ENABLED",
|
|
||||||
"USE_HAL_DRIVER",
|
|
||||||
"USE_FULL_LL_DRIVER",
|
|
||||||
"VARIANT_H=\"variant_generic.h\"",
|
|
||||||
"VECT_TAB_OFFSET=0x0",
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"cStandard": "gnu17",
|
|
||||||
"cppStandard": "gnu++17",
|
|
||||||
"compilerPath": "/home/debian/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc",
|
|
||||||
"compilerArgs": [
|
|
||||||
"-mcpu=cortex-m4",
|
|
||||||
"-mthumb",
|
|
||||||
"-mfpu=fpv4-sp-d16",
|
|
||||||
"-mfloat-abi=hard",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -3753,7 +3753,7 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(property "Value" "1k27"
|
(property "Value" "2k1"
|
||||||
(at 52.324 82.296 90)
|
(at 52.324 82.296 90)
|
||||||
(effects
|
(effects
|
||||||
(font
|
(font
|
||||||
|
|||||||
Reference in New Issue
Block a user