Hello, I have problem, I want to hide my device from ports when I'm using this joystick program, but i want to hide my board from COM PORT (red circle). I have learn to program my board ISP (my leonardo programmed through isp with arduino uno).
does modify fuses in board txt affect this?
if not, what should i do to make it disappear from COM PORT after I upload the program through ISP?
Don't use the Serial object. I never tried myself but according to the code I would expect the CDC to not being activated then and your Leonardo will only show up in your "Ports" during 8 seconds after being reset (bootloader).
But I haven't seen your code, maybe your code is activating the CDC without your intention.
Nah. "ICSP" (In-Circuit Serial Programming) is a Microchip thing.
Atmel always called it "ISP" (In-System Programming)
The Arduino core code will normally keep a Com port active in order to facilitate subsequent upload requests. I don't know offhand if there is an easy way to turn that off. (It has nothing to do with the fuses.)
I dont use any serial related code. but i dont know if joystick library use it. but that 8 seconds will show me different port with different name "Arduino Leonardo Bootloader"
I just use Arduino joystick library, "FlightControllerTest" is the example and modify it to work with my button, I dont use any serial begin nor print.
i just found out that CDC is the one i should disable just like you said, but in my USBDesk.h file there is none something like this //#define CDC_ENABLED //REMOVED BY BOB TO ALLOW ONLY USB KEYBOARD
yes you are right. no easy way to turn that off because i cant find any CDC_ENABLED thing on my files
already found it in USBCore.cpp, in fact that my USBCore.cpp is different so i copied from this link, now the "COM PORT" is not visible from device manager ports.
but there is another problem, when i disable CDC, my DIY Joystick wont move at all. but when I enable CDC my DIY Joystick is moving.
yes, but I already successfully using isp/icsp/spi (so many aliases), and now I often using "upload using programmer" button in arduino