mirror of
https://github.com/anklimov/lighthub
synced 2026-10-28 11:15:00 +00:00
bins & cross-compilation
This commit is contained in:
@@ -43,4 +43,7 @@
|
|||||||
-UMCP23017
|
-UMCP23017
|
||||||
-D BEARSSL_SSL_BASIC
|
-D BEARSSL_SSL_BASIC
|
||||||
-D SPILED_DISABLE
|
-D SPILED_DISABLE
|
||||||
-D PWM_DISABLE
|
-D PWM_DISABLE
|
||||||
|
|
||||||
|
# WAK for HDC1080 (pin D3 on wemos is IO0)
|
||||||
|
-D WAK_PIN=D3
|
||||||
Binary file not shown.
+7979
-7701
File diff suppressed because it is too large
Load Diff
+9805
-9809
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
|
|||||||
export PORT=cu.usbmodem141101
|
export PORT=cu.usbmodem142101
|
||||||
echo . | stty -f /dev/$PORT speed 1200
|
echo . | stty -f /dev/$PORT speed 1200
|
||||||
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -w -v -b firmware.bin -R
|
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -w -v -b firmware.bin -R
|
||||||
Binary file not shown.
+10583
-10585
File diff suppressed because it is too large
Load Diff
+9674
-9675
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+7024
-7042
File diff suppressed because it is too large
Load Diff
+6371
-6385
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1987
-1977
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1811,7 +1811,7 @@ if (!sysConf.getServer(configServer,sizeof(configServer)))
|
|||||||
if (!cleanConf(true))
|
if (!cleanConf(true))
|
||||||
{
|
{
|
||||||
errorSerial<<F("Get aborted")<<endl;
|
errorSerial<<F("Get aborted")<<endl;
|
||||||
htclient.stop();
|
hclient.closeStream(configStream);
|
||||||
return 500;
|
return 500;
|
||||||
}
|
}
|
||||||
root = aJson.parse(&as);
|
root = aJson.parse(&as);
|
||||||
@@ -1967,7 +1967,7 @@ if (!sysConf.getServer(configServer,sizeof(configServer)))
|
|||||||
if (!cleanConf(true))
|
if (!cleanConf(true))
|
||||||
{
|
{
|
||||||
errorSerial<<F("Get aborted")<<endl;
|
errorSerial<<F("Get aborted")<<endl;
|
||||||
htclient.stop();
|
httpClient.end();
|
||||||
return 500;
|
return 500;
|
||||||
}
|
}
|
||||||
//root = aJson.parse((char *) response.c_str());
|
//root = aJson.parse((char *) response.c_str());
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
|
|
||||||
#if defined (ARDUINO_ARCH_ESP8266)
|
#if defined (ARDUINO_ARCH_ESP8266)
|
||||||
|
|
||||||
#if not defined (TWI_SCL) && defined (D1)
|
// #if not defined (TWI_SCL) && defined (D1)
|
||||||
#define TWI_SCL D1
|
// #define TWI_SCL D1
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
#if not defined (WAK_PIN) && defined (D3)
|
// #if not defined (WAK_PIN) && defined (D3)
|
||||||
#define WAK_PIN D3
|
// #define WAK_PIN D3
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
#if defined (TWI_SCL)
|
#if defined (TWI_SCL)
|
||||||
#define SCL_LOW() (GPES = (1 << TWI_SCL))
|
#define SCL_LOW() (GPES = (1 << TWI_SCL))
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if defined (ARDUINO_ARCH_ESP32)
|
#if defined (ARDUINO_ARCH_ESP32)
|
||||||
#undef WAK_PIN
|
//#undef WAK_PIN
|
||||||
#undef SCL_RESET
|
#undef SCL_RESET
|
||||||
//#ifndef WAK_PIN
|
//#ifndef WAK_PIN
|
||||||
//#define WAK_PIN 17
|
//#define WAK_PIN 17
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_AVR)
|
#if defined(ARDUINO_ARCH_AVR)
|
||||||
#ifndef WAK_PIN
|
//#ifndef WAK_PIN
|
||||||
#define WAK_PIN 3 // for LightHub UEXT SCS Pin
|
//#define WAK_PIN 3 // for LightHub UEXT SCS Pin
|
||||||
#endif
|
//#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+18
-4
@@ -193,7 +193,7 @@ monitor_speed = 115200
|
|||||||
platform = espressif32
|
platform = espressif32
|
||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
build_type = debug
|
;build_type = debug
|
||||||
board = esp32-evb
|
board = esp32-evb
|
||||||
extra_scripts = extra_script.py
|
extra_scripts = extra_script.py
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
@@ -521,10 +521,24 @@ lib_deps =
|
|||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
framework = arduino
|
framework = arduino
|
||||||
;board = nodemcuv2
|
;board = nodemcuv2
|
||||||
board = esp01_1m
|
;esp12e ESP8266 80MHz 4MB 80KB Espressif ESP8266 ESP-12E
|
||||||
|
;esp01_1m ESP8266 80MHz 1MB 80KB Espressif Generic ESP8266 ESP-01 1M
|
||||||
extra_scripts = extra_script.py
|
extra_scripts = extra_script.py
|
||||||
board_build.ldscript = eagle.flash.1m64.ld
|
|
||||||
;upload_protocol = esptool
|
;;;; 1M plug ;;;
|
||||||
|
;board = esp01_1m
|
||||||
|
;board_build.ldscript = eagle.flash.1m64.ld
|
||||||
|
;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
;;;; WEMOS D1 ;;;;;
|
||||||
|
board = d1_mini
|
||||||
|
; change microcontroller
|
||||||
|
board_build.mcu = esp8266
|
||||||
|
; change MCU frequency
|
||||||
|
board_build.f_cpu = 80000000L
|
||||||
|
upload_protocol = esptool
|
||||||
|
;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
;build_type = debug
|
;build_type = debug
|
||||||
;monitor_filters = esp8266_exception_decoder
|
;monitor_filters = esp8266_exception_decoder
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user