Codes of a portable and arduino-based electrocardiograph