-
Notifications
You must be signed in to change notification settings - Fork 22
/
scales.h
51 lines (48 loc) · 1.43 KB
/
scales.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// scales.h
// ========
//
// This file is a list of all currently-recognized scales' vendor and product
// IDs.
//
// For example, the USB product 1446:6173 becomes {0x1446, 0x6173}
//
#include <stdint.h>
//
// What is the number of the weighing result to show, as the first result may be incorrect (from the previous weighing)
//
#define WEIGH_COUNT 2
//
// Scales
// ------
//
uint16_t scales[][2] = {\
// Stamps.com Model 510 5LB Scale
{0x1446, 0x6a73},
// USPS (Elane) PS311 "XM Elane Elane UParcel 30lb"
{0x7b7c, 0x0100},
// Stamps.com Stainless Steel 5 lb. Digital Scale
{0x2474, 0x0550},
// Stamps.com Stainless Steel 35 lb. Digital Scale
{0x2474, 0x3550},
// Mettler Toledo
{0x0eb8, 0xf000},
{0x0eb8, 0xf001},
// SANFORD Dymo 10 lb USB Postal Scale
{0x6096, 0x0158},
// Fairbanks Scales SCB-R9000
{0x0b67, 0x555e},
// DYMO 1772057 Digital Postal Scale
{0x0922, 0x8003},
// Dymo-CoStar Corp. M25 Digital Postal Scale
{0x0922, 0x8004},
// Dymo-CoStar Corp. S180 180kg Portable Digital Shipping Scale
{0x0922, 0x8009},
// Pitney Bowes 10lb scale 397-B (X.J. Group XJ-6K809)
{0x0d8f, 0x0200},
// USPS DS25 25lb postage scale, Royal / X.J.GROUP
// If it shows up in lsusb as 0471:0055 it won't work for some reason,
// mine did at first but now it's behaving itself
{0x1446, 0x6a79}
};
#define NSCALES ((sizeof scales)/(sizeof scales[0]))