Simulate the hardware you'd use in the real world — then export the same sketch to flash to your physical board.