This tutorial is a combination of several tutorials already developed in Geekering in order to have access to all this content in only one place.
In the case of Arduino, you can check the already existing post below.
You just need to change pin 7 to pin 13 to be coherent with the video.
#define LED 7 change to #define LED 13
In this case, you will use the same code used in Arduino and follow the next schematic.
To blink an LED with Raspberry Pi you can check the already existing post on Geekering here.