Platforms renamed to have clear naming, Mega2560-5500 platform added, flashing tools for mac attached, compiled images renewed

This commit is contained in:
2019-06-02 02:23:40 +03:00
parent 708f51e202
commit 8076625704
55 changed files with 20608 additions and 70 deletions

View File

@@ -0,0 +1,9 @@
#! /bin/bash
CUSTOM_BUILD_FLAGS_FILE="custom-build-flags/build_flags_mega2560.sh"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
export FLAGS="$FLAGS -DWiz5500"
#TODO: make one file for all envs
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -1,6 +1,7 @@
#! /bin/bash #! /bin/bash
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_mega2560-net.sh CUSTOM_BUILD_FLAGS_FILE="custom-build-flags/build_flags_mega2560-slim.sh"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
#TODO: make one file for all envs
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE source $CUSTOM_BUILD_FLAGS_FILE
fi fi

View File

@@ -1,7 +1,6 @@
#! /bin/bash #! /bin/bash
CUSTOM_BUILD_FLAGS_FILE="custom-build-flags/build_flags_mega2560.sh" CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_mega2560.sh
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
#TODO: make one file for all envs
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE source $CUSTOM_BUILD_FLAGS_FILE
fi fi

View File

@@ -1 +0,0 @@
/Users/andrey/.platformio/packages/tool-avrdude/avrdude -C /Users/andrey/.platformio/packages/tool-avrdude/avrdude.conf -c arduino -P /dev/cu.usbmodem1411 -b 19200 -p m16u2 -vvv -U flash:w:16u2.hex:i

View File

@@ -131,7 +131,7 @@
:10082000584F46462C544F47474C4500656E756DF2 :10082000584F46462C544F47474C4500656E756DF2
:1008300000666C6F617400322E312E300024686FB8 :1008300000666C6F617400322E312E300024686FB8
:100840006D696500757074696D652C6672656568A3 :100840006D696500757074696D652C6672656568A3
:1008500065617000656130383863615F323031390D :1008500065617000373038663531655F3230313967
:100860002D30362D3031004C696768744875622030 :100860002D30362D3031004C696768744875622030
:1008700000246E616D650072656164790020747298 :1008700000246E616D650072656164790020747298
:100880007920616761696E20696E20352073656328 :100880007920616761696E20696E20352073656328
@@ -247,7 +247,7 @@
:100F6000295741544348444F47000A282B29434FEF :100F6000295741544348444F47000A282B29434FEF
:100F70004E54524F4C4C494E4F0032303131303389 :100F70004E54524F4C4C494E4F0032303131303389
:100F80004C0020432B2B2076657273696F6E3A00FC :100F80004C0020432B2B2076657273696F6E3A00FC
:100F9000656130383863615F323031392D30362D3C :100F9000373038663531655F323031392D30362D96
:100FA0003031000A4C617A79686F6D652E72752058 :100FA0003031000A4C617A79686F6D652E72752058
:100FB0004C6967687448756220636F6E74726F6CF9 :100FB0004C6967687448756220636F6E74726F6CF9
:100FC0006C65722000000020002300260029002C00 :100FC0006C65722000000020002300260029002C00

View File

@@ -0,0 +1 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

1
compiled/controllino/upload.sh Executable file
View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

Binary file not shown.

View File

@@ -1,3 +1,3 @@
mode com3:1200,n,8,1 mode com3:1200,n,8,1
pause pause
%HOMEPATH%\.platformio\packages\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R ..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R

Binary file not shown.

View File

@@ -1,3 +1,3 @@
mode com3:1200,n,8,1 mode com3:1200,n,8,1
pause pause
%HOMEPATH%\.platformio\packages\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R ..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,3 +1,3 @@
mode com3:1200,n,8,1 mode com3:1200,n,8,1
pause pause
%HOMEPATH%\.platformio\packages\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R ..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R

Binary file not shown.

View File

@@ -130,8 +130,8 @@
:100810002C524553542C584F4E2C584F46462C546E :100810002C524553542C584F4E2C584F46462C546E
:100820004F47474C4500656E756D00666C6F61748F :100820004F47474C4500656E756D00666C6F61748F
:1008300000322E312E300024686F6D6965007570AE :1008300000322E312E300024686F6D6965007570AE
:1008400074696D652C6672656568656170006561C7 :1008400074696D652C667265656865617000373026
:1008500030383863615F323031392D30362D3031E8 :1008500038663531655F323031392D30362D3031E3
:10086000004C696768744875622000246E616D658C :10086000004C696768744875622000246E616D658C
:100870000072656164790020747279206167616932 :100870000072656164790020747279206167616932
:100880006E20696E2035207365636F6E6473006639 :100880006E20696E2035207365636F6E6473006639
@@ -178,7 +178,7 @@
:100B1000000A436F6E666967207365727665723A84 :100B1000000A436F6E666967207365727665723A84
:100B2000000A282B295741544348444F470032308C :100B2000000A282B295741544348444F470032308C
:100B3000313130334C0020432B2B207665727369A2 :100B3000313130334C0020432B2B207665727369A2
:100B40006F6E3A00656130383863615F3230313939 :100B40006F6E3A00373038663531655F3230313993
:100B50002D30362D3031000A4C617A79686F6D6521 :100B50002D30362D3031000A4C617A79686F6D6521
:100B60002E7275204C6967687448756220636F6ED9 :100B60002E7275204C6967687448756220636F6ED9
:100B700074726F6C6C6572200000002000230026E8 :100B700074726F6C6C6572200000002000230026E8

View File

@@ -0,0 +1 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

0
compiled/mega2560dmx-5100/upload.sh Executable file → Normal file
View File

View File

@@ -0,0 +1 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -109,7 +109,7 @@
:1006C0002C584F46462C544F47474C4500656E7595 :1006C0002C584F46462C544F47474C4500656E7595
:1006D0006D00666C6F617400322E312E300024681C :1006D0006D00666C6F617400322E312E300024681C
:1006E0006F6D696500757074696D652C66726565FE :1006E0006F6D696500757074696D652C66726565FE
:1006F0006865617000656130383863615F32303140 :1006F0006865617000373038663531655F3230319A
:10070000392D30362D3031004C6967687448756278 :10070000392D30362D3031004C6967687448756278
:100710002000246E616D650072656164790020744B :100710002000246E616D650072656164790020744B
:10072000727920616761696E20696E20352073657A :10072000727920616761696E20696E20352073657A
@@ -192,8 +192,8 @@
:100BF000617A79686F6D652E7275000A436F6E6653 :100BF000617A79686F6D652E7275000A436F6E6653
:100C00006967207365727665723A000A282B295746 :100C00006967207365727665723A000A282B295746
:100C100041544348444F47003230313130334C0067 :100C100041544348444F47003230313130334C0067
:100C200020432B2B2076657273696F6E3A006561E5 :100C200020432B2B2076657273696F6E3A00373044
:100C300030383863615F323031392D30362D303104 :100C300038663531655F323031392D30362D3031FF
:100C4000000A4C617A79686F6D652E7275204C6967 :100C4000000A4C617A79686F6D652E7275204C6967
:100C500067687448756220636F6E74726F6C6C6540 :100C500067687448756220636F6E74726F6C6C6540
:100C6000722000000020002300260029002C002F05 :100C6000722000000020002300260029002C002F05

View File

@@ -0,0 +1 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -3863,7 +3863,7 @@
:10F16000733A00454550524F4D20636C656172659E :10F16000733A00454550524F4D20636C656172659E
:10F17000640A000A4C617A79686F6D652E72752099 :10F17000640A000A4C617A79686F6D652E72752099
:10F180004C6967687448756220636F6E74726F6C47 :10F180004C6967687448756220636F6E74726F6C47
:10F190006C65722000656130383863615F323031F0 :10F190006C65722000373038663531655F3230314A
:10F1A000392D30362D30310020432B2B20766572DF :10F1A000392D30362D30310020432B2B20766572DF
:10F1B00073696F6E3A003230313130334C000A28B7 :10F1B00073696F6E3A003230313130334C000A28B7
:10F1C0002D295741544348444F47000A436F6E6608 :10F1C0002D295741544348444F47000A436F6E6608
@@ -3915,7 +3915,7 @@
:10F4A00061740024686F6D696500246E6F64657314 :10F4A00061740024686F6D696500246E6F64657314
:10F4B000007265616479002473746174650024735B :10F4B000007265616479002473746174650024735B
:10F4C000746174730024666F726D6174007570747A :10F4C000746174730024666F726D6174007570747A
:10F4D000696D6500656130383863615F323031399C :10F4D000696D6500373038663531655F32303139F6
:10F4E0002D30362D3031004C6967687448756220C4 :10F4E0002D30362D3031004C6967687448756220C4
:10F4F000004453323438325F3130305F4932435F39 :10F4F000004453323438325F3130305F4932435F39
:10F50000544F5F31575F42524944474520696E6905 :10F50000544F5F31575F42524944474520696E6905

Binary file not shown.

View File

@@ -0,0 +1,2 @@
This package need if you have problem with unrelable cold start of Arduino DUE
Arduino ISP should be connected to 16u2 ICSP connector before run

View File

@@ -0,0 +1 @@
../../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -c arduino -P /dev/cu.usbmodem1411 -b 19200 -p m16u2 -vvv -U flash:w:16u2.hex:i

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
libavrdude.1.dylib

View File

@@ -0,0 +1,41 @@
# libavrdude.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libavrdude.1.dylib'
# Names of this library.
library_names='libavrdude.1.dylib libavrdude.dylib'
# The name of the static archive.
old_library='libavrdude.a'
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' '
# Libraries that this one depends upon.
dependency_libs=' -L/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib -lreadline -lncurses -ltermcap'
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libavrdude.
current=1
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib'

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,41 @@
# libusb-1.0.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names=''
# The name of the static archive.
old_library='libusb-1.0.a'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' '
# Libraries that this one depends upon.
dependency_libs=' -lobjc'
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libusb-1.0.
current=1
age=1
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib'

View File

@@ -0,0 +1,81 @@
#!/bin/sh
prefix=/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
exec_prefix_set=no
usage()
{
cat <<EOF
Usage: libusb-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo 0.1.12
exit 0
;;
--cflags)
if test "$includedir" != /usr/include ; then
includes="-I$includedir"
fi
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
echo $includes
fi
if test "$echo_libs" = "yes"; then
echo -L$libdir -lusb
fi

Binary file not shown.

View File

@@ -0,0 +1,41 @@
# libusb.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names=''
# The name of the static archive.
old_library='libusb.a'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' '
# Libraries that this one depends upon.
dependency_libs=' -L/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib /Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib/libusb-1.0.la -lobjc'
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libusb.
current=8
age=4
revision=4
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/Users/jenkins/jenkins/workspace/avrdude/label/mac-mini/objdir/lib'

View File

@@ -0,0 +1,10 @@
{
"description": "AVRDUDE",
"name": "tool-avrdude",
"system": [
"darwin_x86_64",
"darwin_i386"
],
"url": "http://www.nongnu.org/avrdude/",
"version": "1.60300.190424"
}

Binary file not shown.

View File

@@ -0,0 +1,7 @@
{
"description": "Basic Open Source SAM-BA Application (BOSSA)",
"name": "tool-bossac",
"system": "darwin_x86_64",
"url": "https://github.com/shumatech/BOSSA",
"version": "1.10700.0"
}

Binary file not shown.

View File

@@ -0,0 +1,10 @@
{
"description": "esptool-ck",
"name": "tool-esptool",
"system": [
"darwin_x86_64",
"darwin_i386"
],
"url": "https://github.com/igrr/esptool-ck",
"version": "1.413.0"
}

View File

@@ -1,11 +1,12 @@
cp ../.pioenvs/controllino/firmware.hex controllino cp ../.pioenvs/controllino/firmware.hex controllino
cp ../.pioenvs/m5stack/firmware.bin m5stack cp ../.pioenvs/m5stack/firmware.bin m5stack
cp ../.pioenvs/mega2560dmx-5100/firmware.hex mega2560dmx-5100 cp ../.pioenvs/mega2560slim-5100/firmware.hex mega2560slim-5100
cp ../.pioenvs/due-5100/firmware.bin due-5100 cp ../.pioenvs/due-5100/firmware.bin due-5100
cp ../.pioenvs/mega2560onewire-5100/firmware.hex mega2560onewire-5100 cp ../.pioenvs/mega2560-5100/firmware.hex mega2560-5100
cp ../.pioenvs/due-5500/firmware.bin due-5500 cp ../.pioenvs/due-5500/firmware.bin due-5500
cp ../.pioenvs/nrf52840-5500/firmware.hex nrf52840-5500 cp ../.pioenvs/nrf52840-5500/firmware.hex nrf52840-5500
cp ../.pioenvs/esp32-wifi/firmware.bin esp32-wifi cp ../.pioenvs/esp32-wifi/firmware.bin esp32-wifi
cp ../.pioenvs/stm32-enc2860/firmware.bin stm32-enc2860 cp ../.pioenvs/stm32-enc2860/firmware.bin stm32-enc2860
cp ../.pioenvs/esp8266-wifi/firmware.bin esp8266-wifi cp ../.pioenvs/esp8266-wifi/firmware.bin esp8266-wifi
cp ../.pioenvs/lighthub21/firmware.bin lighthub21 cp ../.pioenvs/lighthub21/firmware.bin lighthub21
cp ../.pioenvs/mega2560-5500/firmware.hex mega2560-5500

5
custom-build-flags/build_flags_controllino.sh Executable file → Normal file
View File

@@ -24,8 +24,9 @@
# export FLAGS="$FLAGS -DESP_WIFI_AP=vent" # export FLAGS="$FLAGS -DESP_WIFI_AP=vent"
# export FLAGS="$FLAGS -DESP_WIFI_PWD=kk007remont" # export FLAGS="$FLAGS -DESP_WIFI_PWD=kk007remont"
# export FLAGS="$FLAGS -DSYSLOG_ENABLE" # export FLAGS="$FLAGS -DSYSLOG_ENABLE"
export FLAGS="$FLAGS -DDEVICE_NAME=kk007_mega2560" export FLAGS="$FLAGS -DDEVICE_NAME=kk007_mega2560"
export FLAGS="$FLAGS -DDHT_COUNTER_DISABLE" export FLAGS="$FLAGS -DCOUNTER_DISABLE"
export FLAGS="$FLAGS -DDHT_DISABLE"
#export FLAGS="$FLAGS -DWITH_DOMOTICZ" #export FLAGS="$FLAGS -DWITH_DOMOTICZ"
#export FLAGS="$FLAGS -DWITH_PRINTEX_LIB" #export FLAGS="$FLAGS -DWITH_PRINTEX_LIB"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)

View File

@@ -1,30 +0,0 @@
#! /bin/bash
# usage:
# first make your own copy of template
# cp build_flags_template.sh build_flags_ENVNAME.sh
# then edit, change or comment something
export FLAGS="$FLAGS -DMY_CONFIG_SERVER=lazyhome.ru"
#export FLAGS="$FLAGS -DWATCH_DOG_TICKER_DISABLE"
#export FLAGS="$FLAGS -DUSE_1W_PIN=12"
#export FLAGS="$FLAGS -DSD_CARD_INSERTED"
export FLAGS="$FLAGS -DSERIAL_BAUD=115200"
#export FLAGS="$FLAGS -DWiz5500"
#export FLAGS="$FLAGS -DDISABLE_FREERAM_PRINT"
export FLAGS="$FLAGS -DCUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:fe"
# export FLAGS="$FLAGS -DDMX_DISABLE"
# export FLAGS="$FLAGS -DARTNET_ENABLE"
# export FLAGS="$FLAGS -DMODBUS_DISABLE"
# export FLAGS="$FLAGS -DOWIRE_DISABLE"
# export FLAGS="$FLAGS -DAVR_DMXOUT_PIN=18"
# export FLAGS="$FLAGS -DLAN_INIT_DELAY=2000"
# export FLAGS="$FLAGS -DCONTROLLINO"
# export FLAGS="$FLAGS -DESP_WIFI_AP=MYAP"
# export FLAGS="$FLAGS -DESP_WIFI_PWD=MYPWD"
# export FLAGS="$FLAGS -DWIFI_MANAGER_DISABLE"
export FLAGS="$FLAGS -DDHT_DISABLE"
# export FLAGS="$FLAGS -DRESET_PIN=5"
# export FLAGS="$FLAGS -DDHCP_RETRY_INTERVAL=60000"
# export FLAGS="$FLAGS -DRESTART_LAN_ON_MQTT_ERRORS"
# export FLAGS="$FLAGS -DW5500_CS_PIN=53"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
echo $FLAGS

View File

@@ -3,29 +3,28 @@
# first make your own copy of template # first make your own copy of template
# cp build_flags_template.sh build_flags_ENVNAME.sh # cp build_flags_template.sh build_flags_ENVNAME.sh
# then edit, change or comment something # then edit, change or comment something
export FLAGS="$FLAGS -DMY_CONFIG_SERVER=lazyhome.ru" #export FLAGS="$FLAGS -DMY_CONFIG_SERVER=lazyhome.ru"
export FLAGS="$FLAGS -DWATCH_DOG_TICKER_DISABLE" export FLAGS="$FLAGS -DWATCH_DOG_TICKER_DISABLE"
#export FLAGS="$FLAGS -DUSE_1W_PIN=12" #export FLAGS="$FLAGS -DUSE_1W_PIN=12"
#export FLAGS="$FLAGS -DSD_CARD_INSERTED" #export FLAGS="$FLAGS -DSD_CARD_INSERTED"
export FLAGS="$FLAGS -DSERIAL_BAUD=115200" #export FLAGS="$FLAGS -DSERIAL_BAUD=115200"
#export FLAGS="$FLAGS -DWiz5500" #export FLAGS="$FLAGS -DWiz5500"
export FLAGS="$FLAGS -DDISABLE_FREERAM_PRINT" export FLAGS="$FLAGS -DDISABLE_FREERAM_PRINT"
export FLAGS="$FLAGS -DCUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:ff" #export FLAGS="$FLAGS -DCUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:ff"
export FLAGS="$FLAGS -DDMX_DISABLE" #export FLAGS="$FLAGS -DDMX_DISABLE"
export FLAGS="$FLAGS -DMODBUS_DISABLE" #export FLAGS="$FLAGS -DMODBUS_DISABLE"
export FLAGS="$FLAGS -DOWIRE_DISABLE" #export FLAGS="$FLAGS -DOWIRE_DISABLE"
# export FLAGS="$FLAGS -DAVR_DMXOUT_PIN=18" # export FLAGS="$FLAGS -DAVR_DMXOUT_PIN=18"
# export FLAGS="$FLAGS -DLAN_INIT_DELAY=2000" # export FLAGS="$FLAGS -DLAN_INIT_DELAY=2000"
# export FLAGS="$FLAGS -DCONTROLLINO" # export FLAGS="$FLAGS -DCONTROLLINO"
export FLAGS="$FLAGS -DWIFI_MANAGER_DISABLE" # export FLAGS="$FLAGS -DWIFI_MANAGER_DISABLE"
# export FLAGS="$FLAGS -DRESET_PIN=5" # export FLAGS="$FLAGS -DRESET_PIN=5"
# export FLAGS="$FLAGS -DDHCP_RETRY_INTERVAL=60000" # export FLAGS="$FLAGS -DDHCP_RETRY_INTERVAL=60000"
# export FLAGS="$FLAGS -DRESTART_LAN_ON_MQTT_ERRORS" # export FLAGS="$FLAGS -DRESTART_LAN_ON_MQTT_ERRORS"
# export FLAGS="$FLAGS -DW5500_CS_PIN=53" # export FLAGS="$FLAGS -DW5500_CS_PIN=53"
export FLAGS="$FLAGS -DSYSLOG_DISABLE" #export FLAGS="$FLAGS -std=gnu++11"
export FLAGS="$FLAGS -std=gnu++11"
#export FLAGS="$FLAGS -DDEVICE_NAME=MYDEVICE" #export FLAGS="$FLAGS -DDEVICE_NAME=MYDEVICE"
export FLAGS="$FLAGS -DDHT_COUNTER_DISABLE" #export FLAGS="$FLAGS -DDHT_COUNTER_DISABLE"
#export FLAGS="$FLAGS -DWITH_PRINTEX_LIB" #export FLAGS="$FLAGS -DWITH_PRINTEX_LIB"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) #export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
echo $FLAGS echo $FLAGS

View File

@@ -11,11 +11,12 @@
src_dir = lighthub src_dir = lighthub
;monitor_speed = 115200 ;monitor_speed = 115200
env_default = env_default =
; Arduino Mega (with DMX, without onewire) + Ethernet shield Wiznet 5100 ; ****** UNCOMMENT single environment name for target platform below *******
; mega2560dmx-5100 ; Arduino Mega (without onewire) + Ethernet shield Wiznet 5100
; mega2560slim-5100
; Arduino Mega (with OneWire, without DMX) + Ethernet shield Wiznet 5100 ; Arduino Mega + Ethernet shield Wiznet 5100
; mega2560onewire-5100 ; mega2560-5100
; Arduino Mega + Ethernet shield Wiznet 5500 ; Arduino Mega + Ethernet shield Wiznet 5500
; mega2560-5500 ; mega2560-5500
@@ -237,12 +238,12 @@ lib_deps =
ClosedCube HDC1080 ClosedCube HDC1080
SparkFun CCS811 Arduino Library SparkFun CCS811 Arduino Library
[env:mega2560dmx-5100] [env:mega2560slim-5100]
platform = atmelavr platform = atmelavr
board = megaatmega2560 board = megaatmega2560
;upload_port = net:192.168.88.31:23 ;upload_port = net:192.168.88.31:23
framework = arduino framework = arduino
build_flags = !bash check_custom_build_flags_mega2560.sh build_flags = !bash check_custom_build_flags_mega2560-slim.sh
lib_ignore = lib_ignore =
DHT sensor library for ESPx DHT sensor library for ESPx
DmxDue DmxDue
@@ -276,6 +277,44 @@ lib_deps =
ClosedCube HDC1080 ClosedCube HDC1080
SparkFun CCS811 Arduino Library SparkFun CCS811 Arduino Library
[env:mega2560-5500]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags = !bash check_custom_build_flags_mega2560-5500.sh
lib_ignore =
DHT sensor library for ESPx
DmxDue
DueFlashStorage
WifiManager
Ethernet3
HTTPClient
NRFFlashStorage
WebServer
UIPEthernet
ESP_EEPROM
M5Stack
lib_deps =
https://github.com/anklimov/Arduino-Temperature-Control-Library.git
https://github.com/anklimov/DS2482_OneWire
https://github.com/anklimov/DmxSimple
https://github.com/anklimov/httpClient
https://github.com/anklimov/aJson
https://github.com/anklimov/CmdArduino
https://github.com/anklimov/ModbusMaster
https://github.com/anklimov/DMXSerial
https://github.com/anklimov/Ethernet
https://github.com/knolleary/pubsubclient.git
https://github.com/anklimov/Artnet.git
FastLED
Adafruit Unified Sensor
DHT sensor library
https://github.com/arcao/Syslog.git
Streaming
ClosedCube HDC1080
SparkFun CCS811 Arduino Library
[env:esp8266-wifi] [env:esp8266-wifi]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
@@ -321,12 +360,12 @@ lib_deps =
ClosedCube HDC1080 ClosedCube HDC1080
SparkFun CCS811 Arduino Library SparkFun CCS811 Arduino Library
[env:mega2560onewire-5100] [env:mega2560-5100]
platform = atmelavr platform = atmelavr
board = megaatmega2560 board = megaatmega2560
framework = arduino framework = arduino
upload_port = net:192.168.88.2:23000 upload_port = net:192.168.88.2:23000
build_flags = !bash check_custom_build_flags_mega2560-net.sh build_flags = !bash check_custom_build_flags_mega2560.sh
lib_ignore = lib_ignore =
DHT sensor library for ESPx DHT sensor library for ESPx
DmxDue DmxDue