aboutsummaryrefslogtreecommitdiff
path: root/usb.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-19 11:19:00 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-19 11:19:00 +0200
commit1f8de21c805fef43bbbf073c696e8630344daa30 (patch)
tree737ac058233996cf7c19328ad49c07c9efb46409 /usb.go
parentac2879d312f3cca787db0b14f27edf9359130cc3 (diff)
Add more ID's
Diffstat (limited to 'usb.go')
-rw-r--r--usb.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/usb.go b/usb.go
index 4770f92..c15b126 100644
--- a/usb.go
+++ b/usb.go
@@ -13,13 +13,17 @@ type Device struct {
}
var (
- vendor = usb.ID(0x0b4d)
- product = usb.ID(0x110a)
- debug = 3
+ graphtec = usb.ID(0x0b4d)
+ cc200_20 = usb.ID(0x110a)
+ cc300_20 = usb.ID(0x111a)
+ silhouette_sd_1 = usb.ID(0x111c)
+ silhouette_sd_2 = usb.ID(0x111d)
+ silhouette_portrait = usb.ID(0x1123)
+ debug = 3
)
func CC100(desc *usb.Descriptor) bool {
- return desc.Vendor == vendor && desc.Product == product
+ return desc.Vendor == graphtec && desc.Product == cc200_20
}
func NewDevice() (d Device) {