No information from Espressif about the difference.
Anyway it works with my 8*8 led matrix
Changes to be committed:
modified: targets/esp32/esp32_neopixel.c
and CLEAR_PERI_REG_MASK to DPORT_CLEAR_PERI_REG_MASK
older syntax has been replaced in V3.1
Changes to be committed:
modified: targets/esp32/esp32_neopixel.c
Added patch from Rob Blanckaert
Added set Encrypton to gatts connect handler
esp32_gatts_func.h
- added a bool for connected from a client in gatts_service_inst
esp32_gatts_func.c
- added include for esp_gap_ble_api.h
- added function to check if a client is connected
- added patches from Rob Blanckaert ( https://github.com/basicer/Espruino/tree/ESP32-v3.0 ) to gatts_write_value_handler
- added esp_ble_set_encryption to gatts_connect_handler
- added handling of connected flag, see esp32_gatts_func.h
- fixed startAdvertising, started only if no client is connected
- added permissions to UART decriptor, patch from Rob Blanckaert
- set connected to false in initialisation
esp32_gatts_func.c
- send notification with buffer, replaced gatts_sendNotification to copy character to buffer first
send on buffer full or latest on 10msec later
bluetooth.h
- added definition GATT_MTU_SIZE_DEFAULT
- added definition BLE_NUS_MAX_DATA_LEN
- added variables_mode in config.
build_platform_config.py
- added define for variables_mode
jsvar.h
- added jsVarsSize; //size of jsVars for option malloc
- added support of malloc jsVars in jsvInit
jsvar.c
- added definition jsVars for variables_mode_malloc
jshardwareESP32.h
- new file with functions to set/get enable status of BLE and Wifi
jshardwareESP32.c
- new file with functions to set/get enable status of BLE and Wifi
ESP32.make
- added jshardware.c to SOURCES
main.c
- added handling for Wifi enabled
- added calculation for jsVars
- initialise jsVars based on calculation
jshardware.c
- used new API call to get Serial Number, even if Wifi is not enabled
- initialises BLE, if BLE is enabled (in NVS storage)
bluetooth.c
- check if BLE is enabled before initialising
jswrap_esp32.h
- defines functions to enable BLE and/or Wifi
jswrap_esp32.c
- wrapper for functions to enable BLE/Wifi, remove code from Flash, to avoid overflow in jsVars
- added status for BLE/Wifi to ESP32.getStatus
esp32_gap_func.c
- get mac adress even if Wifi is not enabled
Changes to be committed:
modified: boards/ESP32.py
modified: make/family/ESP32.make
modified: scripts/build_platform_config.py
modified: src/jsvar.c
modified: src/jsvar.h
modified: targets/esp32/BLE/esp32_gap_func.c
modified: targets/esp32/bluetooth.c
modified: targets/esp32/jshardware.c
new file: targets/esp32/jshardwareESP32.c
new file: targets/esp32/jshardwareESP32.h
modified: targets/esp32/jswrap_esp32.c
modified: targets/esp32/jswrap_esp32.h
modified: targets/esp32/main.c
The romdata_jscode point is mapped by the MMU to the real address of the jscode partition. The offset from the start of flash for the code areas is 0x100000 so this has be removed in the direct access of memory case.
The first idea was to move util timer task to 2nd cpu later, but it turned out taskhandling slows down a lot
Therefore it had to be moved
Move init of timer into main loop
Add a bitfield for usage of pins for soft pwm
Add handling of soft pwm pins to jshPinSetState
Add handling of soft PWM to jshPinAnalogOutput if soft:true is set in options
Set time for util timer to a min of 30 usecs