scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.67k stars 642 forks source link

Combine Codes for ESP32 and ESP8266 #342

Closed quotschmacher closed 2 years ago

quotschmacher commented 2 years ago

i compared both ino-files and they do exactly the same - besides some order of commands and the includes. the thing with the different includes can be fixed to combine both files to one for all.

#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#else
#error "This is not a ESP8266 or ESP32!"
#endif
joeybab3 commented 2 years ago

Good call, I'll get a PR ready for this

joeybab3 commented 2 years ago

Thanks!

quotschmacher commented 2 years ago

You are welcome - was just beautifying 😉