NeoPixel Trinkey/Trinket M0 showing in macOS network panel a

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
marco02
 
Posts: 3
Joined: Wed Feb 16, 2022 4:54 pm

NeoPixel Trinkey/Trinket M0 showing in macOS network panel a

Post by marco02 »

How does one prevent the Trinkey from showing up in the network panel? I only want the Trinkey to be recognized as a mouse. On some devices it duplicates more than 6 times.

Bonus: Is there a way for the OS to only recognize it as a mouse/keyboard? I don't even want it show as a "NeoPixel Trinkey M0" under the USB Bus tree. Can I rename it as "Marco's mouse" for example?


My code.py imports:

Code: Select all

import time
import board
import neopixel
import digitalio
import usb_hid
from adafruit_hid.mouse import Mouse
import random
My boot.py:

Code: Select all

import usb_hid
import storage

storage.disable_usb_drive()

usb_hid.enable((usb_hid.Device.MOUSE,))   # Enable just MOUSE.
Attachments
Screen Shot 2022-02-16 at 3.50.36 PM.png
Screen Shot 2022-02-16 at 3.50.36 PM.png (211.24 KiB) Viewed 143 times

User avatar
tannewt
 
Posts: 3315
Joined: Thu Oct 06, 2016 8:48 pm

Re: NeoPixel Trinkey/Trinket M0 showing in macOS network pan

Post by tannewt »

I think you want to disable the serial link. CDC is actually a modem thing.

https://learn.adafruit.com/customizing- ... 3096590-12

User avatar
marco02
 
Posts: 3
Joined: Wed Feb 16, 2022 4:54 pm

Re: NeoPixel Trinkey/Trinket M0 showing in macOS network pan

Post by marco02 »

Gah I was literally on that page to figure out how to disable it mounting as a storage device but didn't connect the dots that it was acting as a modem. Regardless, solved! Thank you :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”