mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 04:39:49 +03:00
Fix compilation errors and project dependencies for Arduino Mega
This commit is contained in:
@@ -20,6 +20,7 @@ e-mail anklimov@gmail.com
|
||||
|
||||
#include "inputs.h"
|
||||
#include "item.h"
|
||||
#include "utils.h"
|
||||
#include <PubSubClient.h>
|
||||
|
||||
#ifndef DHT_DISABLE
|
||||
|
||||
@@ -477,8 +477,8 @@ void onInitialStateInitLAN() {
|
||||
#if defined(__AVR__) || defined(__SAM3X8E__)||defined(ARDUINO_ARCH_STM32F1)
|
||||
#ifdef W5500_CS_PIN
|
||||
Ethernet.w5500_cspin = W5500_CS_PIN;
|
||||
debugSerial<<F("Use W5500 pin: "));
|
||||
debugSerial<<Ethernet.w5500_cspin);
|
||||
debugSerial<<"Use W5500 pin: ";
|
||||
debugSerial<<(Ethernet.w5500_cspin);
|
||||
#endif
|
||||
IPAddress ip, dns, gw, mask;
|
||||
int res = 1;
|
||||
@@ -553,8 +553,8 @@ void softRebootFunc(){
|
||||
|
||||
void resetHard() {
|
||||
#ifdef RESET_PIN
|
||||
debugSerial<<F("Reset Arduino with digital pin "));
|
||||
debugSerial<<QUOTE(RESET_PIN));
|
||||
debugSerial<<"Reset Arduino with digital pin ";
|
||||
debugSerial<<QUOTE(RESET_PIN);
|
||||
delay(500);
|
||||
pinMode(RESET_PIN, OUTPUT);
|
||||
digitalWrite(RESET_PIN,LOW);
|
||||
@@ -1182,7 +1182,7 @@ void printFirmwareVersionAndBuildOptions() {
|
||||
#endif
|
||||
|
||||
#ifdef RESET_PIN
|
||||
debugSerial<<F("\n(+)HARDRESET on pin=")<<F(QUOTE(RESET_PIN);
|
||||
debugSerial<<"\n(+)HARDRESET on pin="<<QUOTE(RESET_PIN);
|
||||
#else
|
||||
debugSerial<<F("\n(-)HARDRESET, using soft");
|
||||
#endif
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
[platformio]
|
||||
src_dir = lighthub
|
||||
env_default =
|
||||
; megaatmega2560
|
||||
megaatmega2560-net
|
||||
megaatmega2560
|
||||
; megaatmega2560-net
|
||||
; due
|
||||
; esp8266
|
||||
; esp32
|
||||
@@ -112,7 +112,7 @@ lib_deps =
|
||||
https://github.com/anklimov/CmdArduino
|
||||
https://github.com/anklimov/ModbusMaster
|
||||
https://github.com/anklimov/DMXSerial
|
||||
https://github.com/anklimov/Ethernet
|
||||
https://github.com/anklimov/Ethernet2
|
||||
https://github.com/PaulStoffregen/SPI.git
|
||||
https://github.com/knolleary/pubsubclient.git
|
||||
https://github.com/anklimov/Artnet.git
|
||||
@@ -122,6 +122,7 @@ lib_deps =
|
||||
DHT sensor library
|
||||
https://github.com/arcao/Syslog.git
|
||||
Streaming
|
||||
https://github.com/Chris--A/PrintEx.git
|
||||
|
||||
[env:esp8266]
|
||||
platform = espressif8266
|
||||
|
||||
Reference in New Issue
Block a user