The more you conform to forum standards, the more likely it is that someone will be interested in helping you. You’ve been requested to post your code (that actually compiles) with proper code tags. Why not start with that?
Regarding the code: You need to rewrite the Adafruit code to be non-blocking and not use delay(). To do this, you need to study up on the millis() timer technique. Here are some resources:
Arduino IDE: File --> Examples --> 02.Digital --> BlinkWithoutDelay
https://forum.arduino.cc/index.php?topic=503368.0
https://forum.arduino.cc/index.php?topic=223286.0