Watch the On Tap online guitar lesson by Robbie Calvo from 50 R&B Licks You MUST Know
The framework for this lick is a G7 arpeggio that I've added chromatics to. The pedal tone idea is a cool way of adding some tension against those chromatics.
Playing triplet runs in time with the shuffle can be a challenge some times, so really listen to the groove. If you have a good sense of time try pushing and pulling the beat a little to change the feel.