* Added USBMIDI support to libraries/USB
* Added MIDI examples to libraries/USB
* Added missing newline at end of file to MidiController.ino
* Added USBMIDI.cpp to CMake file
* Fix narrowing conversion warning in USBMIDI.cpp
* Fix incomplete initializers warning in USBMIDI.cpp
* Apply suggestions from code review
Co-authored-by: Lucas Saavedra Vaz <lucassvaz@yahoo.com.br>
* add skip files for C6+H2
* remove already patched workaroud for bug
* move #define to top of file
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <lucas.vaz@espressif.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <lucassvaz@yahoo.com.br>
1. Like a real keyboard, the USB interface descriptor will have an interface
subclass of boot and an interface protocol of keyboard. This will cause
some PC BIOS to send a SET PROTOCOL BOOT request to the device.
2. When the device sends reports to the host, if the host requested boot
protocol, don't send a report ID because boot protocol does not use report
IDs.
3. To work with some simple PC BIOS:
a. Use endpoint address of 1 for input and output.
b. Use separate reports for the shift key. These extra reports can be
disabled by calling USBHIDKeyboard::setShiftKeyReports(false).
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
* Update BLERemoteCharacteristic.cpp
Fix kernel panic issue when trying to release BLEClient when the target device have a ble descriptor.
* Update BLERemoteCharacteristic.cpp
Co-authored-by: Lucas Saavedra Vaz <lucassvaz@yahoo.com.br>
---------
Co-authored-by: Lucas Saavedra Vaz <lucas.vaz@espressif.com>
Co-authored-by: Lucas Saavedra Vaz <lucassvaz@yahoo.com.br>
Turns out that disabling the periman APIs from remap has a negligible
effect on the source: the core is already excluded from remapping, as
are most of the libraries. It's also expected to be a private API not
exposed by default.
This patch removes it from both esp32-hal.h and io_pin_remap.h,
adjusting the relevant libraries.
* Modified 'BLEAdvertising.h' & 'BLEAdvertising.cpp'
Added three methods for removing service UUID from BLEAdvertised
* Update BLEAdvertising.cpp
Changed 'i' to 'index'
---------
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
* esp32-hal-bt.c free Bluetooth LE memory if CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY is set
BLE memory can be released if bluetooth-classic - only is requested
* tStart( add error output
* ble mem_release only for esp32
* disable BLE with BT_MODE define
* BluetoothSerial add begin()+disableBLE; add memrelease
* btStart with BT_MODE parameter
* beautification
* Update BluetoothSerial.cpp fix wrong merges
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files
* [pin_remap 2/3] core,libs: add pin remap hooks
* platform: remove previous build options if file is missing
"touch" would create the file if not present, but not delete its
contents if a previous run left the file in the build dir.
* platform: make debug_custom.json file customizable by board
* platform: fix default debug prefix
"debug.toolchain.prefix" must end with a dash, since only the tool name is
appended to this string.
The reason this is not a major issue is that the "debug_custom.json" file
(copied in the sketch directory when debugging is enabled) forces its own
prefix. And to make things more interesting, the "toolchainPrefix" entry
in that file should _not_ end with a dash.
* [pin_remap 3/3]: add Arduino Nano ESP32 board
* fix: periman: include it by default, add include guard
* fix: io_pin_remap: adjust for new perimap APIs
* fix: libraries: manually handled pin remapping files
Previously all libraries invoked either high-level APIs (transparently
remapped, like the user sketch) or low-level ESP-IDF calls (where the
remap to GPIO numbers had to be added manually).
Since 3.x, some of these are mixed (for example, periman* APIs are
remapped, while soc* are not). This must be handled by disabling the
automatic API remapping and making sure all calls use GPIO numbers.
* feat: show remapped pins in chip debug reports
---------
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* Example sketch prints MAC for different interfaces
Interfaces described in documenation: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/misc_system_api.html#mac-address
* Update README.md to include 'MacAddress'
* Add files via upload
* Delete libraries/ESP32/examples/MacAddress/GetMacAddress.ino
* Delete libraries/ESP32/examples/MacAddress/GetMacAddress/GetMacAddress.ino
* Delete libraries/ESP32/examples/MacAddress/GetMacAddress/MacAddress directory
* Add files via upload
* Add files via upload
* Adds necessary MAC header file
* Reverting - moving to the sketch
* Adds include with esp_mac_type_t values
---------
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* Example for IDF component registry
* Added readme
* updated readme
* remove idf dependency
* add empty lines on file end
* idf_component.yml version change
* Updated readme for local development
---------
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* Update RMT initialization code
- Commented out setting interrupt priority for both TX and RX configurations in the RMT initialization code.
* checks IDF version within RMT interrupt priority
---------
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* Update WiFiClient.h
Added missing getSocketOption() with full access to level and option
* Update WiFiClient.h
* Handle timeout settings below 1 second
Fix error with connect timeout settings below 1000ms.
Add getsocketoptions function.
* Add cast for setsockopt length
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* Added Bandwith setting method
* Separted AP and STA on it's own class each
* Missing WiFi
* Rename for consistency
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
esp8266 and esp32 server.available() is not implemented as documented
it is implemented like server.accept() is documented by Arduino
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* Extended bus types for peripheral manager
* add extra_type to peripheral manager
* Fix function call
* Fix check for no extra_type
* Add extra_type for SD and ETH CS pin
* added bus_num and bus_channel to pin structure
* update printPerimanInfo with new fields
* replaced setting bus to INIT with DetachPin call
* add defines for extra attributes
* use new required parameters in perimanSetPinBus
* function rename
* removed duplicate define
* Update print format
---------
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* add senseBox MCU-S2
Add new senseBox Board (MCU-S2) with ESP32-S2
* update senseBox MCU-S2 integration
* update pins_arduino.h
* remove defines and add end symbols
* remove Serial Alias
* change board order
* Add support for ESP32-S3 PowerFeather
* Replace GPIO_NUM_X with just the pin number
* Pattern powerfeather entries after generic s3 board
* Remove redefinitions, add pin aliases to pins_arduino.h
* fix ZigbeeMode mennu for adafruit boards
* remove tinyuf2 csv in variant, use csv in tools/partiions
* add tinyuf2 no ota partitions scheme for all adafruit boards
Various ESP32-variants like the C6, H2, etc. differ in their used flash frequencies.
Also the maximum possible flash size wasn't handled in `magicFlashChipSize`
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
to change initial WiFi.status() because WL_NO_SHIELD
is checked in any generic Arduino WiFi example
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* IDF release/v5.1 b6a66b7d8c
* Fix CI - RMakerCustomAirCooler.ino
No use of `#include "led_strip.h"` in the code
---------
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
* Update/upgrade OTAWebUpdater.ino example
* Wrong side of the MAC address in ssid
* Better not to cheat it on an example :)
* Changes requested by @me-no-dev