Electronics inside a paintball gun