You can use one or another. As you wish. There's nothing else to add. The only thing we will have to do is to modify the code, schematic will be the same.