adafruit / Adafruit_DAP

port of free-DAP to standalone arduino
Other
75 stars 27 forks source link

P2 - Made compatible for use with the esp8266 & esp32 boards #22

Closed Onno-Dirkzwager closed 3 years ago

Onno-Dirkzwager commented 3 years ago

Part2: With the suggestions made by @ladyada in Part1

With minor changes, I was able to make this nice library compatible for use with the esp8266 & esp32 boards.

I tested and was able to successfully update my samd21 board from both mentioned esp boards and my Arduini MKR WiFi 1010

Not all boards have the LED_BUILTIN defined. Users can easily change this in the examples! In the library I using a precompiler statement #ifdef LED_BUILTIN