Hey! I edited some ESP8266 code from
It’s an ISS tracker!
I ported the code to the ESP32.
If you have a Wemos Lolin32 that has a built in OLED you can uncomment the DisplayOled(); part to get it working.
Works on lolin ESP32 Nodemcu, and Huzzah Feather soo far.
If you have any issues please let me know on github
void setColor() {
if (distance <= 1350 && distance >= 1201) {
fill_solid(leds, NUM_LEDS, CRGB::Red);//If the ISS is 1350 miles away play red
}
if (distance <= 1200 && distance >= 1151) {
fill_solid(leds, NUM_LEDS, CRGB::Yellow); //play yellow if 1200
}
if (distance <= 1150 && distance >= 951) {
fill_solid(leds, NUM_LEDS, CRGB::Blue);//play blue if 1150
}
if (distance <= 950) {
fill_solid(leds, NUM_LEDS, CRGB::Green);//play green if passover is close
}
if (distance >= 1351) {
fill_solid(leds, NUM_LEDS, CRGB::Black);
}
FastLEDshowESP32();
}
Have Fun!
