Is there a way to disable the USB serial channel on a Photon? I tried putting Serial.end() in a startup macro, but that doesn’t do it. I am trying to do mouse and keyboard emulation, but don’t want the serial device.
Have you tried
Serial.end() some time later in code?
STARTUP() happens before the system calls
Serial.begin() for the logging feature.
You were right. That was it. Put it a little later in the code and it worked.