197 Commits
v1.0 ... v2.0.1

Author SHA1 Message Date
fda79ea55f static ip is working again 2019-06-15 01:13:51 +03:00
8c9c0c28eb FW binaries updated 2019-06-11 15:37:08 +03:00
20fa427377 EEPROM alligned 2019-06-11 15:32:23 +03:00
b5c6c3a618 Default modbus serial param to N81
Optimized DUE flash saving routine
2019-06-11 15:17:45 +03:00
02fc784002 Merge branch 'develop' of https://github.com/anklimov/lighthub into develop 2019-06-09 02:04:50 +03:00
cf4f688b4b firmware upload scripts for osx
some debug code removed
2019-06-09 02:04:18 +03:00
77221651a1 Windows flashing tools added 2019-06-04 02:55:59 +03:00
8076625704 Platforms renamed to have clear naming, Mega2560-5500 platform added, flashing tools for mac attached, compiled images renewed 2019-06-02 02:23:40 +03:00
708f51e202 Compilation for all platforms. Compiled binaries updated 2019-06-01 23:54:06 +03:00
ea088ca47d M5STACK platform added 2019-06-01 11:37:28 +03:00
1303c106b5 First sucsessfull working build on NRF52840+Wiznet5500 2019-05-12 18:09:39 +03:00
dc4215deaf Publish while MQTT connection pending caused hungs/WDT sometime - fixed
Default set 0 to all DMX out channels (include unused)
2019-05-04 18:49:03 +03:00
3708311e07 Critical: hdc1080 sensor stack overflow fixed 2019-05-01 22:36:58 +03:00
0005bd0931 Firmware binaries uploaded 2019-04-30 15:32:50 +03:00
b7a729d012 ================================== [SUMMARY] ==================================
Environment nrf52840            [SUCCESS]
Environment esp32               [SUCCESS]
Environment due                 [SUCCESS]
Environment megaatmega2560      [SUCCESS]
Environment esp8266             [SUCCESS]
Environment megaatmega2560-net  [SUCCESS]
Environment due-5500            [SUCCESS]
Environment lighthub21          [SUCCESS]
Environment controllino         [SUCCESS]
Environment stm32               [SUCCESS]
======================== [SUCCESS] Took 100.61 seconds
========================
2019-04-30 15:24:23 +03:00
bd47e11a47 ESP compilation fixed 2019-04-30 15:12:41 +03:00
7cb0492a30 Now MQTT compatible with test.mosquitto.org free broker (empty User vs NULL user)
Few analog-in fixes. ESP32 compilation broken due doard definition
changed. Trying to workaround it
2019-04-30 12:51:57 +03:00
29a95f79c0 fix 2019-04-26 03:59:47 +03:00
5d0fe62f71 fix 2019-04-26 03:23:42 +03:00
fb3d532e2f MAC generaton for DUE changed (more enthropy)
http config URI MUST start with /cnf now
2019-04-26 03:19:56 +03:00
4c65015327 thermostat & status submit interval increased 2019-04-25 19:17:50 +03:00
fd19c42cf0 Critical thermostat initialization bug fixed 2019-04-24 13:05:21 +03:00
b744f9b88b compilation fix
================================== [SUMMARY]
==================================
Environment nrf52840            [SUCCESS]
Environment esp32               [SUCCESS]
Environment due                 [SUCCESS]
Environment megaatmega2560      [SUCCESS]
Environment esp8266             [SUCCESS]
Environment megaatmega2560-net  [SUCCESS]
Environment due-5500            [SUCCESS]
Environment lighthub21          [SUCCESS]
Environment controllino         [SUCCESS]
Environment stm32               [SUCCESS]
2019-04-21 12:06:05 +03:00
40954519db Merge branch 'develop' of https://github.com/anklimov/lighthub into develop 2019-04-21 11:54:48 +03:00
9d59d6cf60 Lighthub hardware v2.1 added as platformio environment 2019-04-21 11:54:04 +03:00
63b3d0faa7 Merge branch 'master' into develop 2019-04-09 21:31:46 +03:00
03ea4dddd1 NodeRed Dashbord color picker compatible parser now
(tolerant to MQTT payload arrays like here):
[myhome/in/kuh/set] hsv(65, 100%, 86%)
Item=kuh Sub=1 Cmd=0 Par= <65> <100> <86>
2019-04-09 00:48:20 +03:00
8166e55fca Firmware compiled binaries updated 2019-04-07 00:58:08 +03:00
1d8485391e Wifi manager timeout decreased to 30 sec if wifi disconnected after normal operation
(Timeout after cold reboot stay 180 sec)
2019-04-07 00:50:00 +03:00
2c2657799d Environment nrf52840 [SUCCESS]
Environment esp32               [SUCCESS]
Environment due                 [SUCCESS]
Environment megaatmega2560      [SUCCESS]
Environment esp8266             [SUCCESS]
Environment megaatmega2560-net  [SUCCESS]
Environment due-5500            [SUCCESS]
Environment controllino         [SUCCESS]
Environment stm32               [SUCCESS]
2019-04-07 00:43:48 +03:00
5d46dd5807 few cleanup 2019-04-07 00:12:13 +03:00
3d598a1217 More stability: MQTT Publish suppressed if input Loop invoked from ethernet Idle (reentrance issue? low-memory for stack?)
Side effects - some MQTT publishings may lost
Watchdog enabled when MQTT connection pending
2019-04-06 23:53:59 +03:00
ebc908a3a1 Post-merge fix: no local item control without emit tag, i2c scan fixed and removed
significant stability improvements: config re-load cleanup, MQTT submit
only if connected (ESPx very sensetive on it)
new: negative relay pin# - output invertion
2019-04-06 22:53:36 +03:00
8bf3c86a92 Manually merged pull request "Is dev #39
anklimov:develop from livello:is-dev
 -Domotics fixed
 -i2c bus scan
 -Soft reboot on most platforms (except NRF & STM32)
2019-04-02 12:06:50 +03:00
e65241e201 Wifi Fix 2019-04-02 01:31:38 +03:00
eb29e4f227 Add some WIFI respawning & relability improvements for ESPx
MEGA compilation error fixed
2019-04-01 01:58:29 +03:00
dc16a663ec More control and relability 2019-03-31 11:18:45 +03:00
df4a9540a5 Merge branch 'develop' of https://github.com/anklimov/lighthub into develop 2019-03-30 20:29:27 +03:00
9b1c2e5889 ccs811 & hdc1080 integration done
mqtt publish to abstrchin added
http connection error threating for ESPx, DUE, STM fixed
ESP8266 pin conflict between sensor WAK and DMX OUT fixed
DHT begin added
2019-03-30 20:20:32 +03:00
94b7bf7fc4 Update README.md 2019-03-29 12:50:27 +03:00
3216131e96 Update README.md 2019-03-29 12:49:48 +03:00
b30b9346fb Input modularity deployed (see lighthub/modules)
CCS811 & HDC1080 almost developed as Input module
Inputs core refactored
2019-03-25 02:04:48 +03:00
db29ee566c ESP8266 fix (autoretrieve conf if 404)
flash (aJson update required)
2019-03-24 03:01:18 +03:00
8b56ea4378 MAC address setup refactored (for ESPx and DUE - embedded addresses by default) 2019-03-24 01:46:10 +03:00
8b9584f975 STM32 fix&slim, Wifi manager ESP32, compiled binaries updated for all platforms 2019-03-23 22:26:58 +03:00
6fa661690b Some cleanup, halfway of EEPROM config saving for ESP8266 (required updated aJson lib) 2019-03-23 19:11:09 +03:00
2947a1e53c Environment nrf52840_dk [SUCCESS]
Environment esp32               [SUCCESS]
Environment due                 [SUCCESS]
Environment megaatmega2560      [SUCCESS]
Environment esp8266             [SUCCESS]
Environment megaatmega2560-net  [SUCCESS]
Environment due-5500            [SUCCESS]
Environment controllino         [SUCCESS]
Environment stm32               [SUCCESS]
2019-03-23 15:58:52 +03:00
696254a932 ESP8266 tested, fixed & working (mqtt submit_status caused hungs in ESP if no MQTT connection) 2019-03-22 03:48:15 +03:00
581c172e8e few ESP improvements 2019-03-22 02:26:06 +03:00
ad4d9df00a ESP8266 build fix 2019-03-22 01:15:23 +03:00
2f66491153 Changed again/ Now is nice! 2019-03-13 01:51:37 +03:00
04caf6ffdf RGB - to RGBW conversion algorithm changed 2019-03-13 00:43:33 +03:00
6a6fbf469b INIT_VOLUME increased to 50% 2019-03-10 01:29:50 +03:00
d084849fd6 For water heaters (termostate negative pin#) if some comes wrong (or no connection with termometers output is LOW - valve OPEN)
// OFF - also VALVE is OPEN (no teat control)
2019-03-10 01:10:01 +03:00
02fd5078c9 negative pin init hung fixed, homie nodes list submittind removed (unstable if long list) 2019-03-10 00:42:43 +03:00
cbe5980766 fix 2019-03-09 23:49:10 +03:00
7595a99474 -default topics prefix used if no "/" in "emit" parameters of output
-Thermostat should be working with DHT22
-Negative PIN# in thermostat item - reverse logic: HIGH level of output
should stop heating
2019-03-09 23:38:57 +03:00
cd32554175 MQTT topics refactoring (sub-properties, set) to better compatibility, modify default topic prefix from /myhome to myhome 2019-03-08 03:55:59 +03:00
515728207f fixed longint conversion Mega 2019-03-07 19:16:03 +03:00
eb43bc5d18 uptime to 32 bits, build# to homie 2019-03-06 15:51:44 +03:00
8aac733cd1 Merge pull request #38 from anklimov/develop
Small homie topics fix/tested Mega&Due
2019-03-04 22:14:33 +03:00
517b760e49 due compilation fix 2019-03-04 16:07:45 +03:00
ac71e4436b fix 2019-03-04 16:02:17 +03:00
bdac63fa8a homie topic strucrure correction 2019-03-04 15:47:12 +03:00
12af8d0286 Merge pull request #37 from anklimov/develop
Release candidate for V2.0
2019-03-04 05:00:56 +03:00
eff97d117c Merge branch 'master' into develop 2019-03-04 04:57:02 +03:00
ed0330307e Merge branch 'develop' of https://github.com/anklimov/lighthub into develop 2019-03-04 04:50:39 +03:00
141bb9c657 MQTT topics config & CallBack refactoring 2019-03-04 04:49:35 +03:00
8d779c4581 Update README.md 2019-03-04 01:21:51 +03:00
8cc63445be Update README.md 2019-03-04 01:19:21 +03:00
83e61b042e Update README.md 2019-03-04 01:17:15 +03:00
d1def67417 Update README.md 2019-03-04 01:14:34 +03:00
ba535a6e12 Update README.md 2019-03-04 01:01:46 +03:00
98db109235 Update README.md 2019-03-04 00:34:42 +03:00
23e493097e fix Mega compilation 2019-03-03 16:16:35 +03:00
c74575e0e9 Improve multiplatform building stuff 2019-03-03 15:42:54 +03:00
b6149c4603 Delete CNAME 2019-02-16 10:58:57 +03:00
111b85ca04 Create CNAME 2019-02-16 10:56:55 +03:00
1048d543c5 Set theme jekyll-theme-cayman 2019-02-16 10:55:58 +03:00
3e3b5f9f5f fix 2019-02-14 18:18:49 +03:00
5b5e5e9010 Progmem issues fixed (Mega) 2019-02-14 17:34:31 +03:00
415fce33c8 hungs if no items configured - fixed 2019-02-10 00:18:48 +03:00
772f3ab28c artnet hung fixed 2019-02-09 23:58:30 +03:00
e7f376196c Improved logic to threat unknown 1-wire device (some PnP)
artnet disabled by default for due since some execution blocking in
artnet->read()
2019-02-09 22:38:47 +03:00
ecb11ce3a5 DeviceID based default MAC for DUE, fix for artnet hungs w/o LAN fixed 2019-02-09 12:51:34 +03:00
064ef6f007 MQTT subscribe fix, AnalogIn fix, first attempt to compile for NRF5 2019-02-04 01:38:46 +03:00
8d87f09e29 Beginning to add homie convention compatibility https://homieiot.github.io/specification/ 2019-01-04 04:10:10 +03:00
8652810558 Update README.md 2018-12-25 15:40:41 +03:00
b60ff43cf2 Update README.md
update ext links
2018-12-25 15:25:41 +03:00
4508600cde Improved analog input logic. Mapping config param added 2018-11-25 17:33:42 +03:00
37a6c677ce AnalogInput developed, some other fixes: eol-to-endl debugSerial; volume RGB channels changing by single argument passing (GoodleHome/analogue input control) fixed 2018-11-25 04:46:35 +03:00
8fccde7686 Thermostat group setpoint setup fixed, and setting temperature will not turn off heater now 2018-11-23 17:10:34 +03:00
5bdbaf3513 Update README.md 2018-11-14 00:33:32 +03:00
1c3a4421f3 Unique MPU id for due 2018-11-12 02:21:38 +03:00
2509075803 Merge pull request #35 from livello/IS-ENC
1wire domoticz support, dht22, contact,uptime refactoring
2018-11-10 01:48:18 +03:00
livello
979349a38e freeRam stub removed. debugSerial + small refactoring and code format 2018-11-09 02:12:53 +03:00
livello
23f2e60079 fix flash_64kb error. debugSerial in Item.cpp 2018-11-07 13:49:30 +03:00
livello
9ea9ad8698 refactoring. stm32 minimal support 2018-11-07 01:25:28 +03:00
livello
040dcfe746 domoticz uptime, dht22, contact refactoring 2018-10-23 15:39:20 +03:00
livello
7e6842cd1d 1w domoticz support 2018-10-22 10:34:53 +03:00
3e3d8e6d84 Merge pull request #33 from livello/IS-ENC
lib_ignore, build_flags, DHT, counter, domoticz, WITH_PRINTEX_LIB, arduino_arch,
2018-10-18 23:05:57 +03:00
livello
2ff511be35 platformio clean 2018-10-18 22:33:58 +03:00
livello
e75813e721 modbus merge 2018-10-18 22:25:33 +03:00
livello
52b94055f7 merge upstream/develop 2018-10-18 22:15:52 +03:00
livello
cd03599b83 merge upstream/develop 2018-10-18 22:10:18 +03:00
02af69ba83 Move some strings to flash 2018-10-18 21:12:26 +03:00
222b92d536 [env:megaatmega2560] - correct Ethernet lib for wiz5100 2018-10-18 21:05:00 +03:00
ad555164f6 Merge pull request #32 from MykhailoKh/develop-add-modbus-register-type-parameter
Add modbus register type parameter
2018-10-18 20:45:45 +03:00
livello
b5112c2a29 lib_ignore all envs except stm32 compiles ok at one time 2018-10-18 19:43:40 +03:00
livello
67c7e373a0 lib_ignore almost allow keep piolibdeps 2018-10-18 16:19:44 +03:00
livello
321e4843ba return WITH_PRINTEX_LIB and still has compilation problems 2018-10-18 08:49:39 +03:00
Mykhailo Khulap
08f1aaf72d Keep debug out as it was before 2018-10-18 07:24:33 +03:00
livello
4101f7bd2e ARDUINO_ARCH_AVR 2018-10-18 00:57:00 +03:00
livello
ab1ab64f77 optional build_scripts 2018-10-18 00:44:16 +03:00
livello
655ef79b5d dht_counter_disable
with_domoticz
printex removed because of compilation errors
2018-10-17 22:02:52 +03:00
Mykhailo Khulap
18915c26c2 Fix typo in parameter 2018-10-17 21:52:21 +03:00
Mykhailo Khulap
9d6ffe7f7d Add modbus register type parameter 2018-10-17 21:06:52 +03:00
Mykhailo Khulap
7c46f3b7cd Fix win/unix line ending 2018-10-17 12:17:33 +03:00
livello
fe9300f921 domoticz dht22 support 2018-10-17 12:16:20 +03:00
Mykhailo Khulap
766cd060b8 Fix compilation errors and project dependencies for Arduino Mega 2018-10-17 12:13:07 +03:00
livello
1b2646d0d0 domoticz dht22 support 2018-10-16 11:43:14 +03:00
livello
2bf6050f50 domoticz dht22 support 2018-10-16 11:36:59 +03:00
livello
41df3b701e remove build_flags 2018-10-15 21:27:58 +03:00
d89dfd2364 Prevent restoring temporary turned on channels (by XON) 2018-10-14 11:15:54 +03:00
dd44e46f77 Temperature topicname fixed 2018-10-14 10:43:48 +03:00
687ef7cd99 DS18B20 TEMPERATURE_PRECISION increased to 12 bits and temp converted to float 2018-10-14 03:20:50 +03:00
3038e41788 Fix after merging PR.(DUE and Mega) 2018-10-13 23:03:59 +03:00
87e7bcbd6a Merge pull request #30 from livello/IS-ENC
device_name, PrintEx lib, refactoring
2018-10-13 21:18:26 +03:00
livello
db8a48b1c4 lan init fix 2018-10-11 11:04:05 +03:00
livello
dcf2fcf58e build_flags_envName.sh are customized files and must not be placed into repository 2018-10-11 00:50:08 +03:00
livello
39f655ff78 log, some small fixes 2018-10-11 00:43:09 +03:00
livello
9432898b03 printex streaming 2018-10-10 14:24:18 +03:00
livello
40fe3d3d1b printex 2018-10-10 13:53:45 +03:00
livello
5d64a72ea0 printex 2018-10-10 13:49:28 +03:00
livello
b7675f8dd1 PrintEx 2018-10-09 11:11:00 +03:00
livello
e1db33cc69 PrintEx 2018-10-09 10:01:58 +03:00
livello
02a64ac155 PrintEx 2018-10-09 10:00:19 +03:00
livello
698c2a653a PrintEx 2018-10-09 01:27:56 +03:00
livello
b83badcff8 refactoring 2018-10-08 18:23:10 +03:00
livello
ebc7c57fd6 refactoring 2018-10-08 00:48:56 +03:00
livello
fecdd737d0 Merge remote-tracking branch 'upstream/develop' into IS-ENC 2018-10-04 21:49:59 +03:00
livello
5e06c822cd from IS-STM32Duino 2018-10-04 21:40:55 +03:00
9275467052 core Tested/Bugfixed. XON/XOFF, save/restore states 2018-09-29 12:33:48 +03:00
df95bec241 Google Home Volume voicecommand compatible, XON-XOFF command added, Mega compilation issue fixed (Brige.cpp - updated Modbus lib required) 2018-09-28 03:49:27 +03:00
770c6e3c25 Merge pull request #29 from MykhailoKh/develop-add-support-for-button-as-input
Add button support as input  (every push changing state)
2018-09-28 01:03:03 +03:00
Mykhailo Khulap
7742747d5d Add button support as input 2018-09-27 07:34:09 +03:00
ae2187de84 Update build_flags_template.sh
Default mac changed
2018-09-25 23:23:16 +03:00
c9bed1ea8f Merge pull request #28 from MykhailoKh/develop-add-w5500-spi-cs-pin-configuration
Add configuration for CS pin for Ethernet W5500
2018-09-25 23:16:42 +03:00
Mykhailo Khulap
ba34596c08 Add configuration for CS pin for Ethernet W5500 2018-09-24 08:13:55 +03:00
6efbe5f021 Schematic diagram hardware_v2.0 uploaded 2018-09-16 20:13:51 +03:00
4875136ebc syslog hung fixed 2018-09-10 02:20:07 +03:00
b33c621926 Critical fix: DUE with WIZ5500 working again now: EthernetX lib mess fixed, IP stack startup code fixed 2018-09-10 01:40:35 +03:00
263888ddf1 Sainty check 2018-09-10 01:01:40 +03:00
b2238e5f6f MAC 2018-09-10 00:40:33 +03:00
c89bed6920 def MAC changed 2018-09-09 23:29:36 +03:00
abcde9042e def MAC changed 2018-09-09 23:28:49 +03:00
36dcd5896b def MAC changed 2018-09-09 23:27:32 +03:00
39eed2f05f Added DUE lib 2018-09-09 23:20:49 +03:00
3031a25095 Merge pull request #26 from livello/IS-ENC
Counters input support, up to 6 encoders on mega and due. Syslog, ESP32
2018-09-09 22:52:03 +03:00
livello
f38dfc1851 from IS-STM32Duino 2018-09-09 01:16:07 +03:00
livello
40479ba2c8 stm32f1 suppport. changes 2018-07-19 05:44:27 +03:00
livello
09726be883 esp32 support, build_flags_{ENVNAME}.sh now can be used and edited in IDE! 2018-07-04 01:22:00 +03:00
livello
797ce5d4ce Encoder support 2018-07-01 13:35:53 +03:00
livello
ec4f4784a2 Encoder support 2018-07-01 12:54:59 +03:00
livello
f8355cfb7b Encoder. need to change irq function 2018-07-01 01:56:16 +03:00
34c618db72 polling of contacts fixed 2018-06-30 13:46:22 +03:00
fa864bd9f7 Merge pull request #25 from livello/IS-DHT
(2)DHT22 Input support, thermo, esp refactoring, lan_status enum, wifi_manager, printing ip config, save current ip config
2018-06-30 01:07:49 +03:00
74689fcd8b Merge branch 'develop' into IS-DHT 2018-06-30 01:07:15 +03:00
livello
a54c67e062 fix wifimanager without esp 2018-06-29 10:44:02 +03:00
livello
90c21ef125 wifimanager esp8266, RESTART_LAN_ON_MQTT_ERRORS option, option RESET_PIN for restart on lan init error 2018-06-29 10:35:32 +03:00
livello
483454d9f6 esp8266 fix 2018-06-29 01:03:19 +03:00
livello
21da448e93 ip save 2018-06-29 00:38:38 +03:00
livello
0f670ca506 ip save 2018-06-29 00:31:20 +03:00
livello
973919dc84 printIP, saveIP, loadIP 2018-06-28 15:47:05 +03:00
livello
407a2af235 w5100 reset, soft reset, refactoring 2018-06-28 13:31:58 +03:00
livello
3de7baa0de lanStatus enum 2018-06-27 15:46:12 +03:00
livello
589c510b32 hard and soft reset, dht22 support, reset on lan init error, reset on many mqtt errors 2018-06-20 22:55:23 +03:00
livello
7d09bc6ad0 DHT22 Input support, thermo and esp refactoring 2018-06-09 17:06:58 +03:00
7b69482180 Merge pull request #20 from livello/patch
Esp8266 basic support, dmx now can be disabled, experiments with build scripts
2018-06-01 02:02:10 +03:00
livello
4c6acda58a return targets back (controllino, *-5500) 2018-05-31 23:57:34 +03:00
livello
025ae66990 Merge branch 'master' of github.com:anklimov/lighthub into patch 2018-05-28 13:43:10 +03:00
livello
d17ba12a31 Merge branch 'master' of github.com:anklimov/lighthub into patch
# Conflicts:
#	platformio.ini
2018-05-28 13:42:45 +03:00
8e38095177 scmd,rcmd in inputs may contain not only cmd but values, minimal dimmers volume treshhold for ON command, remote command execute on MQTT command (new Cmd.h required), bat-files to flash DUE and start CLI added 2018-05-25 09:29:47 +03:00
livello
119c1082c2 dht support in progress 2018-05-22 23:52:00 +03:00
livello
2ce453db82 esp8266
esp8266 worked

esp8266 basic support, DMX now can be disabled
2018-05-22 22:10:06 +03:00
livello
bc44c146b9 esp8266 2018-05-22 18:16:50 +03:00
b8861d895a platformio.ini 2018-05-19 15:20:30 +03:00
2b56dcd8dd Merge pull request #19 from livello/patch
clear EEPROM, laninit delay, clean platformio.ini
2018-05-19 15:09:30 +03:00
Климов Андрей Николаевич
44da59a216 platformio.ini 2018-05-19 15:09:01 +03:00
d1cab710ea Update README.md 2018-05-19 14:50:19 +03:00
livello
dc110e0b79 clear EEPROM cmd function 2018-05-17 18:29:04 +03:00
livello
9032802d2a lan init delay 2018-05-15 16:36:44 +03:00
livello
cfa2b83513 lan init delay 2018-05-15 15:54:30 +03:00
livello
f17d857808 revert 2018-05-15 12:46:25 +03:00
livello
a2fe9fd231 Merge branch 'my_master' into patch
# Conflicts:
#	README.md
#	build_flags_template.sh
#	compiled/Mega2560/Wiz5100/firmware.hex
#	compiled/Mega2560/Wiz5500/firmware.hex
#	lighthub/main.cpp
#	lighthub/main.h
#	lighthub/options.h
#	platformio.ini
2018-05-15 01:35:03 +03:00
livello
0a3d044cab moved setting build flags to python script. No need CLI anymore. Removed duplicated envs. They can be used by setting appropriate build flags: Wiz5500, Controllino, etc. 2018-05-15 01:34:16 +03:00
livello
71908ab2eb Removed envs can be used with setting up build flags. 2018-05-12 22:19:15 +03:00
130 changed files with 58761 additions and 8882 deletions

12
.gitignore vendored
View File

@@ -1,5 +1,17 @@
.pioenvs .pioenvs
.piolibdeps .piolibdeps
.pio
.clang_complete .clang_complete
.gcc-flags.json .gcc-flags.json
.DS_Store
CMakeListsPrivate.txt CMakeListsPrivate.txt
custom-build-flags/*
build_flags_due.sh
build_flags_esp32.sh
build_flags_esp8266.sh
build_flags_stm32.sh
build_flags_due-5500.sh
build_flags_mega2560.sh
build_flags_mega2560-net.sh
build_flags_controllino.sh
build_flags_nrf52840.sh

8
.idea/markdown-exported-files.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownExportedFiles">
<htmlFiles />
<imageFiles />
<otherFiles />
</component>
</project>

BIN
.vscode/.browse.c_cpp.db vendored Normal file

Binary file not shown.

4
.vscode/arduino.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"board": "arduino:sam:arduino_due_x",
"port": "/dev/cu.usbmodem1411"
}

108
.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,108 @@
{
"!!! WARNING !!!": "PLEASE DO NOT MODIFY THIS FILE! USE https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags",
"configurations": [
{
"name": "Mac",
"macFrameworkPath": [],
"includePath": [
"/Users/andrey/Library/Arduino15/packages/arduino/tools/**",
"/Users/andrey/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/**",
"/Users/andrey/.platformio/packages/framework-arduinosam/cores/sam",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/libsam",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/CMSIS/CMSIS/Include",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/CMSIS/Device/ATMEL",
"/Users/andrey/.platformio/packages/framework-arduinosam/variants/arduino_due_x",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Adafruit Unified Sensor_ID31",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/ArduinoHttpClient/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Artnet",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/CmdArduino",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DHT sensor library_ID19",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DS2482_OneWire",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DallasTemperature",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DmxDue",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DueFlashStorage/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Ethernet2/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/FastLED_ID126",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/ModbusMaster/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/PrintEx/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/PubSubClient/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/SD_ID161",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/SPI/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/SdFat_ID322/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Streaming_ID560",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Syslog/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/aJson",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Ethernet2_ID261/src",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/HID/src",
"/Users/andrey/.platformio/packages/tool-unity",
"/Users/andrey/Documents/Arduino/lighthub/include",
"/Users/andrey/Documents/Arduino/lighthub/lighthub",
""
],
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": "${workspaceRoot}/.vscode/.browse.c_cpp.db",
"path": [
"/Users/andrey/.platformio/packages/framework-arduinosam/cores/sam",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/libsam",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/CMSIS/CMSIS/Include",
"/Users/andrey/.platformio/packages/framework-arduinosam/system/sam/CMSIS/Device/ATMEL",
"/Users/andrey/.platformio/packages/framework-arduinosam/variants/arduino_due_x",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Adafruit Unified Sensor_ID31",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/ArduinoHttpClient/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Artnet",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/CmdArduino",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DHT sensor library_ID19",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DS2482_OneWire",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DallasTemperature",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DmxDue",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/DueFlashStorage/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Ethernet2/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/FastLED_ID126",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/ModbusMaster/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/PrintEx/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/PubSubClient/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/SD_ID161",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/SPI/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/SdFat_ID322/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Streaming_ID560",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Syslog/src",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/aJson",
"/Users/andrey/Documents/Arduino/lighthub/.piolibdeps/Ethernet2_ID261/src",
"/Users/andrey/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/HID/src",
"/Users/andrey/.platformio/packages/tool-unity",
"/Users/andrey/Documents/Arduino/lighthub/include",
"/Users/andrey/Documents/Arduino/lighthub/lighthub",
""
]
},
"defines": [
"PLATFORMIO=40000",
"__SAM3X8E__",
"ARDUINO_ARCH_SAM",
"ARDUINO_SAM_DUE",
"Wiz5500",
"ARTNET_ENABLE",
"F_CPU=84000000L",
"USBCON",
"ARDUINO=10805",
"USB_VID=0x2341",
"USB_PID=0x003E",
"USB_PRODUCT=\"Arduino Due\"",
"USB_MANUFACTURER=\"Arduino\"",
"printf=iprintf",
""
],
"intelliSenseMode": "clang-x64",
"cStandard": "c11",
"cppStandard": "c++11",
"compilerPath": "/Users/andrey/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin/arm-none-eabi-gcc -mthumb -mcpu=cortex-m3",
"forcedInclude": [
"/Users/andrey/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino/Arduino.h"
]
}
],
"version": 4
}

7
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

34
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,34 @@
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
// PIO Unified Debugger
//
// Documentation: https://docs.platformio.org/page/plus/debugging.html
// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html
{
"version": "0.2.0",
"configurations": [
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug",
"executable": "/Users/andrey/Documents/Arduino/lighthub/.pioenvs/due-5500/firmware.elf",
"toolchainBinDir": "/Users/andrey/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin",
"svdPath": "/Users/andrey/.platformio/platforms/atmelsam/misc/svd/ATSAM3X8E.svd",
"preLaunchTask": {
"type": "PlatformIO",
"task": "Pre-Debug"
},
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (skip Pre-Debug)",
"executable": "/Users/andrey/Documents/Arduino/lighthub/.pioenvs/due-5500/firmware.elf",
"toolchainBinDir": "/Users/andrey/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin",
"svdPath": "/Users/andrey/.platformio/platforms/atmelsam/misc/svd/ATSAM3X8E.svd",
"internalConsoleOptions": "openOnSessionStart"
}
]
}

6
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"terminal.integrated.env.osx": {
"PATH": "/Users/andrey/.platformio/penv/bin:/Users/andrey/.platformio/penv:/usr/local/opt/ruby/bin:/usr/local/opt/python@2/bin:/opt/local/sbin:/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS",
"PLATFORMIO_CALLER": "vscode"
}
}

160
README.md
View File

@@ -1,26 +1,33 @@
# LightHub # LightHub
is Flexible, Arduino-Mega/Arduino DUE/ESP8266 open-software and open-hardware SmartHome controller. [RU](https://geektimes.ru/post/295109/) [HOME-site RU](http://lazyhome.ru) is Flexible, Arduino-Mega/Arduino DUE/ESP8266/ESP32 open-software and open-hardware SmartHome controller. [RU](https://geektimes.ru/post/295109/) [HOME-site RU](http://lazyhome.ru)
It may operate both: It may operate both:
* On [especially designed hardware board](http://www.lazyhome.ru/index.php/featurerequest) with 16 optocoupled digital inputs, 16 ESD protected digital/analog Inputs/outputs, 8 open-collector outputs (up to 0.5A/50V), DMX IN/OUT, MODBUS RTU and hardware 1-wire support circuit. * On [especially designed hardware board](http://www.lazyhome.ru/index.php/featurerequest) with 16 optocoupled digital inputs, 16 ESD protected digital/analog Inputs/outputs, 8 open-collector outputs (up to 0.5A/50V), DMX IN/OUT, MODBUS RTU and hardware 1-wire support circuit.
* On plain Arduino MEGA 2560, Arduino DUE, ESP8266 and even on [Controllino](http://controllino.biz/) * On plain Arduino MEGA 2560, Arduino DUE, ESP8266, ESP32 and even on [Controllino](http://controllino.biz/)
(Controllino and ESP8266 is not tested enough and in experimental stage yet) (Controllino is not tested enough)
Lighthub allows connecting together: Lighthub allows connecting together:
* Contact sensors (switches, buttons etc) * Contact sensors (switches, buttons etc)
* Analog sensors (Leak detectors, Knobs etc)
* 1-Wire temperature sensors (up to 20 on single bus) * 1-Wire temperature sensors (up to 20 on single bus)
* Standard nonexpensive Relay board with TTL inputs, [like this](https://aliexpress.com/item/16-Channel-20A-Relay-Control-Module-for-Arduino-UNO-MEGA2560-R3-Raspberry-Pi/32747887693.html) to control AC powered lamps, floor heaters, boilers etc * Temperature/Humidity/CO2 sensors: DHT22, CS811, HDC1080
* [Standard nonexpensive LED dimmers](https://aliexpress.com/item/30-channel-27channel-Easy-DMX-LED-controller-dmx-decoder-driver-rgb-led-controller/2015743918.html) and [AC DMX-512 dimmers](https://aliexpress.com/item/DMX302-led-DMX-triac-dimmer-brightness-controller-AC90V-240V-Output-3channels-1A-CH-High-voltage-led/32822841266.html) * Standard nonexpensive Relay board with TTL inputs, [like this](http://ali.pub/2zlosh) to control AC powered lamps, floor heaters, boilers etc
* [Standard nonexpensive LED dimmers](http://ali.pub/2zlokp) and [AC DMX-512 dimmers](http://ali.pub/2zlont)
* Modbus RTU devices (Currently, are deployed two types of Modbus devices: AC Dimmer and Ventilation set (Based on [Vacon 10 controller](http://files.danfoss.com/download/Drives/Vacon-10-Quick-Guide-DPD00714F1-UK.pdf)) * Modbus RTU devices (Currently, are deployed two types of Modbus devices: AC Dimmer and Ventilation set (Based on [Vacon 10 controller](http://files.danfoss.com/download/Drives/Vacon-10-Quick-Guide-DPD00714F1-UK.pdf))
* Simple DMX wall sensor panel [like this](https://aliexpress.com/item/New-Ltech-D8-LED-rgb-RGBW-touch-panel-controller-DMX512-controller-DC12-24V-4-zones-4/32800199589.html) * Simple DMX wall sensor panel [like this](http://ali.pub/2zlohe)
[List of non-expensive compatible components from AliExpress here](http://ppv.alipromo.com/custom/promo.php?hash=pjagwaovaero6vkeabjpkpvy4gznbgkc&landing_id=39661)
![alt text](LightHub.png "LightHub application diagram") ![alt text](LightHub.png "LightHub application diagram")
Where is possible both, to configure local control/mapping between inputs and outputs (light, floor heating thermostats) and remote control from MQTT enabled software. At the moment, LightHub tested with following set of complementary free software:
![alt text](docs/LightHubAppDiagram.png "LightHub application diagram")
Where is possible both, to configure local control/mapping between inputs and outputs (light, floor heating thermostats) and remote control from MQTT enabled software. At the moment, LightHub tested and perfectly working with following set of complementary free software:
* [Openhab or Openhab2 Smarthome software](http://www.openhab.org/) * [Openhab or Openhab2 Smarthome software](http://www.openhab.org/)
Openhab provides own native mobile app both, for IoS and Android, and even allow you to use Apple's HomeKit to say "Siri, turn on light in bedroom" but requires some server to be installed (Raspberry PI with [Openhabian](https://docs.openhab.org/installation/openhabian) will good enough) Openhab provides own native mobile app both, for IoS and Android, and even allow you to use Apple's HomeKit and Google Home to say "Siri, turn on light in bedroom" or "Hey Google, set bedroom light to Red" but requires some server to be installed in-premises (Raspberry PI with [Openhabian](https://docs.openhab.org/installation/openhabian) will good enough)
* [HomeRemote mobile client](http://thehomeremote.com/) * [HomeRemote mobile client](http://thehomeremote.com/)
Home Remote mobile applicatios for IoS and Android requires just MQTT broker to be working. Any Cloud-based MQTT broker, like [CloudMQTT](https://www.cloudmqtt.com/) will enough to serve average household, even with free account. Home Remote mobile applicatios for IoS and Android requires just MQTT broker to be working. Any Cloud-based MQTT broker, like [CloudMQTT](https://www.cloudmqtt.com/) will enough to serve average household, even with free account.
* [Node-Red](https://nodered.org/) Possibly, the best solution to deploy event-based authomation and scripting on top of MQTT/LightHub. The easy to use universal and visual tool to wire many different devices in single system. Having own Dashbord which allow control from web/mobile web, even without mobile apps (but excelent co-working with OpenHab and HomeRemote) * [Node-Red](https://nodered.org/) Possibly, the best solution to deploy event-based authomation and scripting on top of MQTT/LightHub. The easy to use universal and visual tool to wire many different devices in single system. Having own Dashbord which allow control from web/mobile web, even without mobile apps (excelent co-working with OpenHab and HomeRemote)
Scalability of Lighthub is virtually unlimited: Setup so many controllers you needed in most convenient places of your house - MQTT broker will allow controllers communicate each other and with Openhab/NodeRed/HomeRemote and propagate commands across network. Scalability of Lighthub is virtually unlimited: Setup so many controllers you needed in most convenient places of your house - MQTT broker will allow controllers communicate each other and with Openhab/NodeRed/HomeRemote and propagate commands across network.
@@ -30,105 +37,28 @@ Scalability of Lighthub is virtually unlimited: Setup so many controllers you ne
* [Channel commands](https://github.com/anklimov/lighthub/wiki/Channel-commands) * [Channel commands](https://github.com/anklimov/lighthub/wiki/Channel-commands)
* [OpenHab integration](https://github.com/anklimov/lighthub/wiki/OpenHab--integration) * [OpenHab integration](https://github.com/anklimov/lighthub/wiki/OpenHab--integration)
Finished portation of project to Arduino DUE and ESP8266 (ESP32 not tested).
Compiled image has been added to [compiled/](https://github.com/anklimov/lighthub/tree/master/compiled) folder. Flash your Mega 2560
```bash
avrdude -v -V -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i
```
or flash your DUE (need to correct path and port, of course)
```bash
/Users/<user>/Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac -i -d --port=cu.usbmodem1451 -U false -e -w -v -b firmware.bin -R
```
Note: binary images usually not up-to-date with recent code. The preferred way, to compile and upload firmware to your controller.
# Dependencies
(quite big number of libs required. Use git clone to have your local copy in your Arduino libs folder)
Please check updates for all dependences.
For patched libraries, appropriate GitHub repo URL provided:
* Arduino-Temperature-Control-Library https://github.com/anklimov/Arduino-Temperature-Control-Library
* DS2482_OneWire https://github.com/anklimov/DS2482_OneWire
* FastLED
* Wire (standard)
* Artnet https://github.com/anklimov/Artnet.git
* DmxSimple https://github.com/anklimov/DmxSimple (for AVR) or https://github.com/anklimov/ESP-Dmx (for ESP) or https://github.com/anklimov/DmxDue (for DUE)
* HTTPClient (for AVR) https://github.com/anklimov/HTTPClient or https://github.com/arduino-libraries/ArduinoHttpClient for other platforms
* aJson https://github.com/anklimov/aJson
* CmdArduino https://github.com/anklimov/CmdArduino
* EEPROM (standard for AVR) or DueFlashStorage for DUE: https://github.com/sebnil/DueFlashStorage
* ModbusMaster https://github.com/anklimov/ModbusMaster
* pubsubclient-2.6
* DMXSerial-master (for AVR) https://github.com/anklimov/DMXSerial
* Ethernet https://github.com/anklimov/Ethernet
* SPI (standard)
Portation from AVR Mega 2560 to SAM3X8E (Arduino DUE) done since v 0.96 and tested against Wiznet 5100 Ethernet shield and Wiznet 5500 Ethernet module
# Platforms specific details: # Platforms specific details:
AVR version is basic, long tome in production and have all functions **AVR** version (Arduino Mega) is basic, long time in production and have all functions
*DMX-out is software (DMXSimple) on pin3 * DMX-out is software (DMXSimple) on pin3, can be re-defined to PIN 18 (USART1 TX)
* DMX-in - hardware
* WIZNET 5100 and 5500 Ethernets are supported
* Modbus on USART2
**SAM3X8E**: (Tested. Recomended hardware at current moment) **SAM3X8E** (Arduino DUE): (Tested. In production. Recomended hardware at current moment)
* default PWM frequency * default PWM out frequency
* both, DMX-in and DMX-out are hardware USART based. Use USART1 (pins 18 and 19) for DMX-out and DMX-in * both, DMX-in and DMX-out are hardware USART based. Use USART1 (pins 18 and 19) for DMX-out and DMX-in
* WIZNET 5100 and 5500 Ethernets are supported
* Modbus on USART2
**ESP8266**: (Developed but not tested in production) **ESP8266, ESP32**: (Tested)
* DMX-OUT on USART1 TX * DMX-OUT on USART1 TX
* DMX-IN - not possible to deploy in ESP8266 * DMX-IN - disabled - not possible to deploy in ESP8266
* Modbus - disabled. Might be configured in future on USART0 instead CLI/DEBUG * Modbus - disabled. Might be configured in future on USART0 instead CLI/DEBUG
* Uses Wifi interface instead wired connection
since v. 0.97: **NRF52840** : Still early development stage
Mega and DUE:
Need to use compiler directive -D Wiz5500 and https://github.com/anklimov/Ethernet2 library to compile with Wiznet 5500 instead 5100
Prefered way to compile project is using platformio toolchain, suitable for Arduino Due, and Arduino Mega2560
# Due compilation issue "USART0_Handler redefinition"
Please, open /variants/arduino_due_x/variant.cpp file, then add USART0_Handler method definition like this
void USART0_Handler(void) __attribute__((weak));
The normal path to find this file in platformio is:
.platformio/packages/framework-arduinosam/variants/arduino_due_x
# Platformio command line build instructions
[First of all install platformio framework.]( http://docs.platformio.org/en/latest/installation.html) [Good tutorial for fast start in RUSSIAN.](https://geektimes.ru/post/273852/)
In linux\OSX you can open terminal, navigate to your programming directory, then
```bash
git clone https://github.com/anklimov/lighthub.git
cd lighthub
```
now prepare project files for your IDE
```bash
pio init --ide [atom|clion|codeblocks|eclipse|emacs|netbeans|qtcreator|sublimetext|vim|visualstudio|vscode]
```
Set custom build flags. first make your own copy of template
```bash
cp build_flags_template.sh my_build_flags.sh
```
then edit, change or comment unnecessary sections and source it
```bash
nano my_build_flags.sh
source my_build_flags.sh
```
build and upload firmware for due|megaatmega2560|esp8266 board
```bash
pio run -e due|megaatmega2560|esp8266 -t upload
```
Clean pio libraries folder. Try it if you have compilation problem:
```bash
rm -Rf .piolibdeps
```
open COM-port monitor with specified baud rate
```bash
platformio device monitor -b 115200
```
# Custom build flags # Custom build flags
@@ -144,24 +74,44 @@ platformio device monitor -b 115200
* MODBUS_DISABLE // disable Modbus support * MODBUS_DISABLE // disable Modbus support
* OWIRE_DISABLE // disable OneWire support * OWIRE_DISABLE // disable OneWire support
* ARTNET_ENABLE //Enable Artnet protocol support * ARTNET_ENABLE //Enable Artnet protocol support
* AVR_DMXOUT_PIN=18 // Set Pin for DMXOUT on megaatmega2560
* CONTROLLINO //Change Modbus port, direction pins and Wiznet SS pins to be working on [Controllino](http://controllino.biz/) * CONTROLLINO //Change Modbus port, direction pins and Wiznet SS pins to be working on [Controllino](http://controllino.biz/)
* LAN_INIT_DELAY=2000 // set lan init delay for Wiznet ethernet shield
* ESP_WIFI_AP=MYAP // esp wifi access point name
* ESP_WIFI_PWD=MYPWD // esp wifi access point password
* WIFI_MANAGER_DISABLE //Disable wifi manager for esp8266
* COUNTER_DISABLE //disable Counter, Uptime input support (for RAM savings on mega2560)
* DHT_DISABLE //disable DHT input support (for RAM savings on mega2560)
* RESTART_LAN_ON_MQTT_ERRORS //reinit LAN if many mqtt errors occured
* DEVICE_NAME short handy device name which is used instead of mac for download config http://{MY_CONFIG_SERVER}/{DEVICE_NAME}_config.json
* SYSLOG_ENABLE enable UDP SYSLOG support feature(under DEVELOPMENT) that must be configured through config file
* WITH_PRINTEX_LIB use PrintEx library (develop experimental feature)
* CSSHDC_DISABLE //Disable CS811 and HDC1080 sensors support
# Default compilation behavior: # Default compilation behavior:
* Config server: lazyhome.ru * Config server: lazyhome.ru (hosting of config files available for all registred users of portal - see MyDevices tab)
* Watchdog enabled * Watchdog enabled
* 1-Wire communication with DS2482-100 I2C driver * 1-Wire communication with DS2482-100 I2C driver
* No SD * No SD
* Serial speed 115200 * Serial speed 115200
* Wiznet 5100 (for MEGA & DUE) * Wiznet 5100 (for MEGA & DUE)
* Free Ram printing enabled * Free Ram printing enabled
* de:ad:be:ef:fe:00 * de:ad:be:ef:fe:ff default MAC address for MEGA (on ESPx, DUE - using hardware defined MAC by default)
* DMX support enabled * DMX support enabled
* Modbus support enabled * Modbus support enabled
* OneWire support enabled * OneWire support enabled
* Artnet disabled * Artnet disabled
* Defailt MQTT input topic: /myhome/in * LAN_INIT_DELAY=500 //ms
* Default MQTT topic to publish device status: /myhome/s_out * Defailt MQTT broadcast input topic: myhome/in
* Default Alarm output topic /alarm * Default MQTT topic to publish device status: myhome/s_out
* Default Alarm output topic: alarm
* DHT, Counter, Uptime support enabled
* Wifi manager for esp8266/esp32 enabled
* RESTART_LAN_ON_MQTT_ERRORS disabled
* DEVICE_NAME disabled
* SYSLOG_ENABLE disabled
* WITH_PRINTEX_LIB disabled, using Streaming library
* CS811 and HDC1080 sensors support are enabled
If you've using Arduino IDE to compile & flash firmware, it will use Default options above and you will not able to configure additional compilers options except edit "options.h" file

1
_config.yml Normal file
View File

@@ -0,0 +1 @@
theme: jekyll-theme-cayman

View File

@@ -0,0 +1,30 @@
#! /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="-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

@@ -1,21 +0,0 @@
#! /bin/bash
# usage:
# first make your own copy of template
# cp build_flags_template.sh my_build_flags.sh
# then edit, change or comment something
# nano my_build_flags.sh
# and source it
# source my_build_flags.sh
export 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:00"
export FLAGS="$FLAGS -DDMX_DISABLE"
export FLAGS="$FLAGS -DMODBUS_DISABLE"
export FLAGS="$FLAGS -DOWIRE_DISABLE"
export PLATFORMIO_BUILD_FLAGS="$FLAGS"
unset FLAGS

View File

@@ -0,0 +1,9 @@
#! /bin/bash
export FLAGS="$FLAGS -DCONTROLLINO"
export FLAGS="$FLAGS -DCUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:07"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_controllino.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

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

View File

@@ -0,0 +1,7 @@
#! /bin/bash
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_due.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,14 @@
#! /bin/bash
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
export FLAGS="$FLAGS -DDMX_DISABLE"
export FLAGS="$FLAGS -DMODBUS_DISABLE"
export FLAGS="$FLAGS -DOWIRE_DISABLE"
export FLAGS="$FLAGS -DDHT_DISABLE"
export FLAGS="$FLAGS -DCOUNTER_DISABLE"
#export FLAGS="$FLAGS -DM5STACK"
#export FLAGS="$FLAGS -std=gnu++11"
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_esp32.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,9 @@
#! /bin/bash
export FLAGS="$FLAGS -DMODBUS_DISABLE"
#export FLAGS="$FLAGS -DCOUNTER_DISABLE"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_esp8266.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,10 @@
#! /bin/bash
export FLAGS="$FLAGS -DWiz5500"
export FLAGS="$FLAGS -DW5500_CS_PIN=53"
export FLAGS="$FLAGS -DARTNET_ENABLE"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_due-5500.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

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

@@ -0,0 +1,8 @@
#! /bin/bash
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)
#TODO: make one file for all envs
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,7 @@
#! /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)
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,17 @@
#! /bin/bash
export FLAGS="$FLAGS -DWiz5500"
#export FLAGS="$FLAGS -DW5500_CS_PIN=10"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
export FLAGS="$FLAGS -DDMX_DISABLE"
export FLAGS="$FLAGS -DMODBUS_DISABLE"
#export FLAGS="$FLAGS -DOWIRE_DISABLE"
export FLAGS="$FLAGS -std=gnu++11"
export FLAGS="$FLAGS -DWIFI_MANAGER_DISABLE"
export FLAGS="$FLAGS -DCOUNTER_DISABLE"
export FLAGS="$FLAGS -DCSSHDC_DISABLE"
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_nrf52840.sh
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

View File

@@ -0,0 +1,14 @@
#! /bin/bash
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_stm32.sh
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
export FLAGS="$FLAGS -DDMX_DISABLE"
export FLAGS="$FLAGS -DMODBUS_DISABLE"
export FLAGS="$FLAGS -DOWIRE_DISABLE"
export FLAGS="$FLAGS -DDHT_DISABLE"
export FLAGS="$FLAGS -DCOUNTER_DISABLE"
export FLAGS="$FLAGS -DNO_HOMIE"
export FLAGS="$FLAGS -DCSSHDC_DISABLE"
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
source $CUSTOM_BUILD_FLAGS_FILE
fi
echo $FLAGS

Binary file not shown.

Binary file not shown.

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

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

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

3
compiled/due-5100/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1451
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

Binary file not shown.

View File

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

3
compiled/due-5500/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1411
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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

3
compiled/lighthub21/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1451
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

Binary file not shown.

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

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

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 -P /dev/cu.wchusbserial1450 -v -V -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

1
compiled/monitor.bat Normal file
View File

@@ -0,0 +1 @@
pio device monitor -b 115200

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -0,0 +1,273 @@
:10000000A7C00000C0C00000BEC00000BCC000000F
:10001000BAC00000B8C00000B6C00000B4C0000004
:10002000B2C00000B0C00000AEC00000C1C40000FB
:1000300085C40000A8C00000A6C00000A4C0000045
:10004000A2C00000A0C000009EC000009CC0000034
:100050009AC0000098C0000096C0000021C10000B6
:1000600092C0000090C000008EC000008CC0000054
:100070008AC0000088C0000086C0000084C0000064
:1000800082C0000080C000007EC000007CC0000074
:100090007AC0000078C000001201100102000008C0
:1000A00041233D0001000102DC0109023E00020182
:1000B00000C0320904000001020201000524000111
:1000C0001004240206052406000107058203080027
:1000D000FF09040100020A000000070504024000B5
:1000E00001070583024000010403090432034100B3
:1000F00072006400750069006E006F002000280027
:100100007700770077002E006100720064007500B0
:1001100069006E006F002E0063006300290000007C
:100120002E03410072006400750069006E006F00CC
:1001300020004400750065002000500072006F0030
:1001400067002E00200050006F0072007400000055
:1001500011241FBECFEFD2E0DEBFCDBF11E0A0E083
:10016000B1E0E4EDF0E102C005900D92A831B107D5
:10017000D9F712E0A8E1B1E001C01D92A833B107A0
:10018000E1F72BD1A5C73CCF9C01DC01AE57BF4F97
:10019000ED91FC91119741911196FC93EE9380584B
:1001A0009F4FE817F90711F42D933C939FB7F894EC
:1001B000F901EC57FF4F8081815080839FBF842FCE
:1001C0000895882311F03F9A01C03F9847980895F9
:1001D000882311F046980895469A0895DF92EF9289
:1001E000FF920F931F93FC018489813019F08230B4
:1001F00019F404C010E303C010E001C010E28389C9
:10020000823009F418608589873031F0883031F008
:10021000863029F4126003C0146001C01660109289
:10022000C9001092C8001092CA000785F088E188C2
:10023000D288202F3F2D4E2D5D2D10921E01203B88
:1002400084E0380780E0480780E0580719F481E02F
:1002500080931E01CA01B90122E030E040E050E085
:100260001CD720583B47414E5F4FCA01B901202F90
:100270003F2D4E2D5D2DEFD6215030403093CD00D7
:100280002093CC001093CA0082E08093C80088E9D4
:100290008093C9001F910F91FF90EF90DF90089518
:1002A0001F920F920FB60F9211242F938F939F934B
:1002B000EF93FF939091CE008EB38430F1F4E091F0
:1002C000A201F091A3019083E091A201F091A3011A
:1002D000CF0101969093A3018093A201825A91408D
:1002E00021F482E291E0928381839FB7F894809118
:1002F000A6018F5F8093A6019FBFFF91EF919F9111
:100300008F912F910F900FBE0F901F901895FC01A9
:1003100040911A0140931B0180911C0180931D01A3
:100320008585282F30E02170307020931A01858553
:1003300090E096958795817080931C0180911E01B5
:10034000882339F088E790E0909319018093180191
:100350000895442341F4222331F082E390E0909306
:10036000190180931801089580E091E00AC680E0A9
:1003700091E0BDC584B7877F84BF88E10FB6F8944C
:1003800080936000109260000FBE81E01ADF16BCFF
:1003900083E085BD86B58831E8F315BC16BC80E0E6
:1003A00010DF469A3E9A87E690E09093CD008093C6
:1003B000CC0086E08093CA001092C80088E1809348
:1003C000C900539A5A9A8AB180638AB98BB1806303
:1003D0008BB9A9D284E085BD08950F931F93CF9365
:1003E000DF93C8DF2FB7F89487EA91E09093280253
:1003F0008093270290932A02809329022FBF2FB760
:10040000F89482E291E09093A3018093A2019093EB
:10041000A5018093A4012FBF7894C7EAD1E003E03F
:100420008FB7F89490912B028FBF903809F180E03C
:1004300091E0D3D497FD1CC0E0912702F0912802EF
:100440008083E0912702F0912802CF0101969093DA
:100450002802809327028752924011F4D283C183ED
:100460009FB7F89480912B028F5F80932B029FBFE0
:100470008FB7F8941091A6018FBFA89903C01136C9
:1004800008F456C0A89A8091A601882361F05D986F
:1004900000931F0108C082E291E076DE682F80E0C1
:1004A00091E001D511501123B1F780911F018823EC
:1004B00051F080911F01815080931F0180911F0195
:1004C000882309F45D9A80912001882351F080915E
:1004D000200181508093200180912001882309F41C
:1004E0005C9A809118019091190118161906E4F48C
:1004F000CC97CD9710F481E001C080E069DE809157
:100500001801909119010197C29710F481E001C080
:1005100080E057DE80911801909119010197909326
:1005200019018093180104C080E052DE80E049DEAA
:100530008FB7F89490912B028FBF992369F087EAC7
:1005400091E022DE982F8091C80085FFFCCF909328
:10055000CE005C980093200180E091E095D42AD4ED
:100560005FCFDA01923049F0933061F09130F9F4C5
:10057000E8E9F0E022E130E01EC0EAEAF0E02EE334
:1005800030E019C0813049F0813018F0823079F4C0
:1005900008C0E8EEF0E0849107C0ECEEF0E0849152
:1005A00003C0E0E2F1E08491282F30E004C0E0E0F5
:1005B000F0E020E030E0ED93FC93C901089528E0DD
:1005C00030E040E003C04F5F220F331F2817390788
:1005D000D0F3842F8295807F08958093E9008091E5
:1005E000EB0081608093EB001092ED006093EC00D3
:1005F0004093ED008091EE00881F8827881F0895A2
:100600001092F40090E09093E9001092F0001092A4
:10061000E8001092ED008091EB008E7F8093EB005C
:100620009F5F953081F708958091300288238CF484
:1006300003C08EB38823B1F08091E80082FFF9CF28
:100640008091E8008B778093E80008958EB388232B
:1006500049F08091E80080FFF9CF8091E8008E7723
:100660008093E800089594E68091EC0080FF05C037
:100670008091E80080FF05C023C08091E80082FDE2
:100680001FC08EB3882311F482E008958EB38530A5
:1006900011F483E008958091EB0085FF02C081E0B2
:1006A00008958091E10082FFDFCF8091E1008B7F90
:1006B0008093E100992311F484E008959150D4CF00
:1006C00080E008959C014091360250913702461710
:1006D000570718F4F90120E038C06115710511F0D1
:1006E000AB01F8CF8091E8008E778093E80040E07E
:1006F00050E0F0CF8091E80083FF02C081E00895D0
:100700008091E80082FD2DC08EB3882381F18EB3E5
:10071000853079F18091E80080FF17C09091F20058
:1007200006C081918093F100415050409F5F411578
:10073000510511F09830A8F320E0983009F421E039
:100740008091E8008E778093E8004115510591F67D
:10075000222381F606C08EB3882349F08EB38530FC
:1007600041F08091E80082FFF6CF80E0089582E0BA
:10077000089583E008959C0140913602509137021C
:100780004617570710F490E03BC06115710511F052
:10079000AB01F9CF8091E8008E778093E80040E0CC
:1007A00050E0F1CF8091E80083FF02C081E008951E
:1007B0008091E80082FD30C08EB3882399F18EB31A
:1007C000853091F18091E80080FF1AC08091F2009D
:1007D00009C0F9012F5F3F4FE491E093F1004150D0
:1007E00050408F5F4115510511F0883090F390E033
:1007F000883009F491E08091E8008E778093E800DA
:100800004115510579F6992369F606C08EB3882300
:1008100049F08EB3853041F08091E80082FFF6CF39
:1008200080E0089582E0089583E008959C016115B9
:10083000710529F48091E8008B778093E800F90135
:1008400020C08091E80083FF02C081E008958EB34C
:10085000882339F18EB3853031F18091E80082FF31
:10086000F0CF06C08091F10081936150704021F07B
:100870008091F2008823B1F78091E8008B77809314
:10088000E80061157105E9F606C08EB3882349F0CA
:100890008EB3853041F08091E80080FFF6CF80E094
:1008A000089582E0089583E0089542D044D01EBAAE
:1008B00010922E0210922D0210922C0284E089BD1B
:1008C00089B5826089BD09B400FEFDCF8091D80052
:1008D000982F9F779093D80080688093D80080915C
:1008E00063008E7F809363008091D8008F7D80931A
:1008F000D8008091E0008E7F8093E0008091E1003D
:100900008E7F8093E1008091E20081608093E2001D
:100910008091E100877F8093E1008091E200886010
:100920008093E2000895C1DF81E080932F02089553
:100930001092E20008951092E10008951F920F9224
:100940000FB60F9211241F932F933F934F935F93F2
:100950006F937F938F939F93AF93BF93EF93FF9387
:10096000E9EEF0E0108117701082E0EFF0E0808196
:10097000877F80837894C3D0F894A9EEB0E01C926E
:10098000E0EFF0E08081886080831C93FF91EF911D
:10099000BF91AF919F918F917F916F915F914F9197
:1009A0003F912F911F910F900FBE0F901F901895A0
:1009B0001F920F920FB60F9211242F933F934F93D4
:1009C0005F936F937F938F939F93AF93BF93EF93B7
:1009D000FF938091E10080FF1BC08091E20080FFC7
:1009E00017C08091E1008E7F8093E1008091E2004A
:1009F0008E7F8093E2008091E20080618093E2002C
:100A00008091D80080628093D80019BC1EBAD1D1E1
:100A10008091E10084FF29C08091E20084FF25C01D
:100A200084E089BD89B5826089BD09B400FEFDCF2F
:100A30008091D8008F7D8093D8008091E1008F7ED7
:100A40008093E1008091E2008F7E8093E2008091AC
:100A5000E20081608093E20080912E02882311F4ED
:100A600081E001C084E08EBBA4D18091E10083FFCE
:100A700027C08091E20083FF23C08091E100877F3F
:100A80008093E10082E08EBB10922E028091E10003
:100A90008E7F8093E1008091E2008E7F8093E20060
:100AA0008091E20080618093E200AADD80E060E056
:100AB00042E093DD8091F00088608093F00079D16E
:100AC0008091E10082FF0AC08091E20082FF06C0AF
:100AD0008091E1008B7F8093E1006BD1FF91EF91DA
:100AE000BF91AF919F918F917F916F915F914F9146
:100AF0003F912F910F900FBE0F901F9018951F934D
:100B0000DF93CF93CDB7DEB7AC970FB6F894DEBFC7
:100B10000FBECDBFE0E3F2E08091F100819322E0CF
:100B2000E833F207C9F78091300230913102353055
:100B300009F487C0363040F43130C9F1313070F0FB
:100B4000333009F01DC133C0383009F4EFC03930FB
:100B500009F4FEC0363009F013C192C0803821F08C
:100B6000823809F00DC108C090912C0280912D02AD
:100B7000882399F0926011C080913402877080932D
:100B8000E9008091EB0090E025E0969587952A9505
:100B9000E1F7982F91701092E9008091E800877F2B
:100BA0008093E8009093F1001092F100CAC088236E
:100BB00019F0823009F0E4C090E08F7190700097D6
:100BC00021F0029709F0DDC00CC080913202813023
:100BD00009F0D7C010922D02333069F580932D02B1
:100BE0002AC080913202882331F520913402277087
:100BF00009F4C7C02093E9008091EB0080FFC1C0D9
:100C0000333021F48091EB00806213C08091EB00BF
:100C100080618093EB0081E090E002C0880F991F13
:100C20002A95E2F78093EA001092EA008091EB00A7
:100C300088608093EB001092E9008091E800877F44
:100C400083C0882309F09CC0109132028091E80093
:100C5000877F8093E800E8DC04C08EB3882309F422
:100C600090C08091E80080FFF8CF812F8F7711F43A
:100C700092E001C093E09EBB80688093E30081C056
:100C80008058823008F07CC080913202909133020B
:100C900023E08C3D920799F55FB7F894DE01159635
:100CA0004EE020E030E061E2E42FF0E06093570096
:100CB000849120FF03C082958F704F5F982F9F70A3
:100CC000892F805D8A3308F0895F8C9311961C927E
:100CD00011972F5F3F4F12962431310529F75FBFDF
:100CE0008AE28B8383E08C838091E800877F809306
:100CF000E800CE0103966AE270E0E4DC11C0609186
:100D00003402AE014F5F5F4F2CDCBC010097C9F18C
:100D10008091E800877F8093E80089819A812BDDAC
:100D20008091E8008B778093E8002BC0803841F5F4
:100D30008091E800877F8093E80080912E02809365
:100D4000F1008091E8008E778093E8006DDC19C097
:100D50008823B1F490913202923098F48091E800A7
:100D6000877F8093E80090932E025EDC80912E02B4
:100D7000882311F483E001C084E08EBBF8DA01C05F
:100D8000F3DA8091E80083FF0AC08091EB00806273
:100D90008093EB008091E800877F8093E800AC9619
:100DA0000FB6F894DEBF0FBECDBFCF91DF911F917C
:100DB000089508951F938EB3882361F01091E90080
:100DC0001092E9008091E80083FF01C098DE17705F
:100DD0001093E9001F9108950895FC018EB38430AB
:100DE00021F587859089A189B2890097A105B10570
:100DF000E1F085818093E9008091E80082FF15C0D1
:100E00008091F200882319F42FEF3FEF04C0809106
:100E1000F100282F30E08091F200882341F4809186
:100E2000E8008B778093E80002C02FEF3FEFC90105
:100E30000895FC018EB3843011F587859089A189CE
:100E4000B2890097A105B105D1F081818093E900B5
:100E50008091F2008823A9F09091E8008091E80049
:100E60008E778093E80095FD0CC0FDDB982F8823DA
:100E700049F48091E8008E778093E80003C092E007
:100E800001C090E0892F0895FC018EB3843051F4A5
:100E900087859089A189B2890097A105B10511F0D4
:100EA000CF01C7CF08951F93FC01162F8EB3843056
:100EB000D9F487859089A189B2890097A105B105E8
:100EC00099F081818093E9008091E80085FD08C058
:100ED0008091E8008E778093E800C5DB882329F4B1
:100EE0001093F10080E001C082E01F9108950F93FC
:100EF0001F93CF93DF93EC010D96FC0189E0DF0196
:100F00001D928A95E9F72A813B8109818C8188238A
:100F100011F410E001C014E0C90151DB182B12607C
:100F2000802F61E8412F59DB882329F12E813F81F1
:100F30000D818885882311F410E001C014E0C901F7
:100F40003EDB182B1260802F60E8412F46DB8823A0
:100F500091F02A853B8509858C85882311F410E062
:100F600001C014E0C9012BDB182B1260802F61EC4B
:100F7000412F33DB01C080E0DF91CF911F910F91B2
:100F80000895CF93DF93EC018091E80083FF60C068
:100F9000888190E02091340230913502281739077A
:100FA00009F056C080913102813261F0823220F422
:100FB000803209F04DC019C0823269F1833209F0E4
:100FC00047C038C080913002813A09F041C0809119
:100FD000E800877F8093E800CE010F9667E070E01D
:100FE00071DB8091E8008B7713C0809130028132F1
:100FF00079F58091E800877F8093E800CE010F9615
:1010000067E070E013DCCE01E9D88091E8008E77CC
:101010008093E8001DC0809130028132C9F4809134
:10102000E800877F8093E800809132028D87CE01AF
:101030006ED90DC080913002813251F48091E80068
:10104000877F8093E800CE0160913202C5DEECDA42
:10105000DF91CF910895A1E21A2EAA1BBB1BFD01BF
:101060000DC0AA1FBB1FEE1FFF1FA217B307E40787
:10107000F50720F0A21BB30BE40BF50B661F771FDF
:10108000881F991F1A9469F76095709580959095BF
:101090009B01AC01BD01CF01089597FB092E0526E8
:1010A0000ED057FD04D0D7DF0AD0001C38F450957D
:1010B0004095309521953F4F4F4F5F4F0895F6F77C
:1010C00090958095709561957F4F8F4F9F4F0895B4
:0410D000F894FFCFC2
:1010D400000340000004400000020800000000007B
:0810E4000000000000001400F0
:00000001FF

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"
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,34 @@
@set DIRVERNAME=giveio
@set DIRVERFILE=%DIRVERNAME%.sys
@echo Copying the driver to the windows directory
@echo target file: %WINDIR%\%DIRVERFILE%
@copy %DIRVERFILE% %WINDIR%\%DIRVERFILE%
@echo Remove a running service if needed...
@loaddrv stop %DIRVERNAME% >NUL
@if errorlevel 2 goto install
@loaddrv remove %DIRVERNAME% >NUL
@if errorlevel 1 goto install
:install
@echo Installing Windows NT/2k/XP driver: %DIRVERNAME%
@loaddrv install %DIRVERNAME% %WINDIR%\%DIRVERFILE%
@if errorlevel 3 goto error
@loaddrv start %DIRVERNAME%
@if errorlevel 1 goto error
@loaddrv starttype %DIRVERNAME% auto
@if errorlevel 1 goto error
@echo Success
@goto exit
:error
@echo ERROR: Installation of %DIRVERNAME% failed
:exit

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,11 @@
{
"name": "tool-avrdude",
"description": "AVRDUDE",
"system": [
"windows",
"windows_amd64",
"windows_x86"
],
"url": "http://www.nongnu.org/avrdude/",
"version": "1.60300.190424"
}

View File

@@ -0,0 +1,14 @@
@set DIRVERNAME=giveio
@loaddrv stop %DIRVERNAME%
@if errorlevel 2 goto error
@loaddrv remove %DIRVERNAME%
@if errorlevel 1 goto error
@goto exit
:error
@echo ERROR: Deinstallation of %DIRVERNAME% failed
:exit

View File

@@ -0,0 +1,12 @@
@set DIRVERNAME=giveio
@loaddrv status %DIRVERNAME%
@if errorlevel 1 goto error
@goto exit
:error
@echo ERROR: Status querry for %DIRVERNAME% failed
:exit

Binary file not shown.

View File

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

Binary file not shown.

View File

@@ -0,0 +1,11 @@
{
"description": "esptool-ck",
"name": "tool-esptool",
"system": [
"windows",
"windows_amd64",
"windows_x86"
],
"url": "https://github.com/igrr/esptool-ck",
"version": "1.413.0"
}

View File

@@ -0,0 +1,11 @@
{
"description": "Tool to build and unpack SPIFFS images",
"name": "tool-mkspiffs",
"system": [
"windows",
"windows_amd64",
"windows_x86"
],
"url": "https://github.com/igrr/mkspiffs",
"version": "2.230.0"
}

12
compiled/update_bin.sh Executable file
View File

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

View File

@@ -0,0 +1,30 @@
{
"mqtt":["garden","192.168.10.114",1883,"test","test"],
"ow":{
"28FFADCE601705A3":{"emit":"t_soil1","item":"h_relay6"},
"286164123FF96F55":{"emit":"t_soil2"},
"28FFEF6D60170335":{"emit":"t_soil3"}
},
"items":{
"h_relay1":[6,39,1,1],
"h_relay2":[6,38,1,1],
"h_relay3":[6,37,1,1],
"h_relay4":[6,36,1,1],
"h_relay5":[6,35,1,1],
"h_relay6":[5,34,27,1],
"h_relay7":[6,33,1,1],
"h_relay8":[6,32,1,1],
"h_auto":[6,29,1,1]
},
"in":{
"5": {"T":4,"emit": "/myhome/s_out/t_dht1"},
"40":{"emit":"/myhome/s_out/g_in1","scmd":"CLOSED","rcmd":"OPEN"},
"41":{"emit":"/myhome/s_out/g_in2","scmd":"CLOSED","rcmd":"OPEN"},
"42":{"emit":"/myhome/s_out/g_in3","scmd":"CLOSED","rcmd":"OPEN"},
"43":{"emit":"/myhome/s_out/g_in4","scmd":"CLOSED","rcmd":"OPEN"},
"44":{"emit":"/myhome/s_out/g_in5","scmd":"CLOSED","rcmd":"OPEN"},
"45":{"emit":"/myhome/s_out/g_in6","scmd":"CLOSED","rcmd":"OPEN"},
"46":{"emit":"/myhome/s_out/g_in7","scmd":"CLOSED","rcmd":"OPEN"},
"47":{"emit":"/myhome/s_out/g_in8","scmd":"CLOSED","rcmd":"OPEN"}
}
}

View File

@@ -0,0 +1,9 @@
{
"mqtt": ["test_esp","192.168.10.1",1883,"test","test"],
"items":{
"h_speed0": [6,9],
"h_speed1": [6,10]},
"in": {
"5": {"T":4,"emit": "/myhome/s_out/t_vent_street"}
}
}

View File

@@ -0,0 +1,32 @@
#! /bin/bash
# usage:
# first make your own copy of template
# cp build_flags_template.sh my_build_flags.sh
# then edit, change or comment something
# nano my_build_flags.sh
# and source it
# source my_build_flags.sh
#export FLAGS="$FLAGS -DMY_CONFIG_SERVER=lighthub.elistech.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=C2:3E:1f:03:1B:1E"
# export FLAGS="$FLAGS -DDMX_DISABLE"
# export FLAGS="$FLAGS -DMODBUS_DISABLE"
# export FLAGS="$FLAGS -DOWIRE_DISABLE"
#export FLAGS="$FLAGS -DAVR_DMXOUT_PIN=18"
#export FLAGS="$FLAGS -DCONTROLLINO"
# export FLAGS="$FLAGS -DRESET_PIN=8"
# export FLAGS="$FLAGS -DLAN_INIT_DELAY=2000"
# export FLAGS="$FLAGS -DESP_WIFI_AP=vent"
# export FLAGS="$FLAGS -DESP_WIFI_PWD=kk007remont"
# export FLAGS="$FLAGS -DSYSLOG_ENABLE"
export FLAGS="$FLAGS -DDEVICE_NAME=kk007_mega2560"
export FLAGS="$FLAGS -DCOUNTER_DISABLE"
export FLAGS="$FLAGS -DDHT_DISABLE"
#export FLAGS="$FLAGS -DWITH_DOMOTICZ"
#export FLAGS="$FLAGS -DWITH_PRINTEX_LIB"
export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)

View File

@@ -0,0 +1,30 @@
#! /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:ff"
#export FLAGS="$FLAGS -DDMX_DISABLE"
#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 -DWIFI_MANAGER_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 -std=gnu++11"
#export FLAGS="$FLAGS -DDEVICE_NAME=MYDEVICE"
#export FLAGS="$FLAGS -DDHT_COUNTER_DISABLE"
#export FLAGS="$FLAGS -DWITH_PRINTEX_LIB"
#export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short)
echo $FLAGS

Some files were not shown because too many files have changed in this diff Show More