new ping library

why i cant use sonar.ping() from new ping and tone function together?

Hello and welcome :slight_smile:

It's probably because the NewPing library modify timers settings, so that the tone function won't work correctly or at all, because it also rely on those timers.

Don't ask me how to solve that, I have never messed with those timers so I have no idea. Maybe someone else will be able to help more.