mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 03:39:49 +03:00
bins & cross-compilation
This commit is contained in:
@@ -43,4 +43,7 @@
|
||||
-UMCP23017
|
||||
-D BEARSSL_SSL_BASIC
|
||||
-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.
File diff suppressed because it is too large
Load Diff
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
|
||||
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -w -v -b firmware.bin -R
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1811,7 +1811,7 @@ if (!sysConf.getServer(configServer,sizeof(configServer)))
|
||||
if (!cleanConf(true))
|
||||
{
|
||||
errorSerial<<F("Get aborted")<<endl;
|
||||
htclient.stop();
|
||||
hclient.closeStream(configStream);
|
||||
return 500;
|
||||
}
|
||||
root = aJson.parse(&as);
|
||||
@@ -1967,7 +1967,7 @@ if (!sysConf.getServer(configServer,sizeof(configServer)))
|
||||
if (!cleanConf(true))
|
||||
{
|
||||
errorSerial<<F("Get aborted")<<endl;
|
||||
htclient.stop();
|
||||
httpClient.end();
|
||||
return 500;
|
||||
}
|
||||
//root = aJson.parse((char *) response.c_str());
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
|
||||
#if defined (ARDUINO_ARCH_ESP8266)
|
||||
|
||||
#if not defined (TWI_SCL) && defined (D1)
|
||||
#define TWI_SCL D1
|
||||
#endif
|
||||
// #if not defined (TWI_SCL) && defined (D1)
|
||||
// #define TWI_SCL D1
|
||||
// #endif
|
||||
|
||||
#if not defined (WAK_PIN) && defined (D3)
|
||||
#define WAK_PIN D3
|
||||
#endif
|
||||
// #if not defined (WAK_PIN) && defined (D3)
|
||||
// #define WAK_PIN D3
|
||||
// #endif
|
||||
|
||||
#if defined (TWI_SCL)
|
||||
#define SCL_LOW() (GPES = (1 << TWI_SCL))
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
|
||||
#if defined (ARDUINO_ARCH_ESP32)
|
||||
#undef WAK_PIN
|
||||
//#undef WAK_PIN
|
||||
#undef SCL_RESET
|
||||
//#ifndef WAK_PIN
|
||||
//#define WAK_PIN 17
|
||||
@@ -43,9 +43,9 @@
|
||||
#endif
|
||||
|
||||
#if defined(ARDUINO_ARCH_AVR)
|
||||
#ifndef WAK_PIN
|
||||
#define WAK_PIN 3 // for LightHub UEXT SCS Pin
|
||||
#endif
|
||||
//#ifndef WAK_PIN
|
||||
//#define WAK_PIN 3 // for LightHub UEXT SCS Pin
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ monitor_speed = 115200
|
||||
platform = espressif32
|
||||
framework = arduino
|
||||
monitor_filters = esp32_exception_decoder
|
||||
build_type = debug
|
||||
;build_type = debug
|
||||
board = esp32-evb
|
||||
extra_scripts = extra_script.py
|
||||
monitor_speed = 115200
|
||||
@@ -521,10 +521,24 @@ lib_deps =
|
||||
platform = espressif8266
|
||||
framework = arduino
|
||||
;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
|
||||
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
|
||||
;monitor_filters = esp8266_exception_decoder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user