I was following a tutorial on setting up the raspberry pi as an HID, more specifically, a keyboard. Other tutorials seem to work with the same file /dev/hidg0.