This waveshare part should do what you want.
you want the improved part at the bottom of this post.
Peter