2011-02-14 20:20:19 -05:00
|
|
|
//
|
|
|
|
// 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}
|
|
|
|
//
|
2011-02-13 20:39:00 -05:00
|
|
|
#include <stdint.h>
|
2011-01-29 19:32:52 -05:00
|
|
|
|
2011-02-14 20:20:19 -05:00
|
|
|
//
|
2012-10-14 00:21:52 -07:00
|
|
|
// **NSCALES** should be kept updated with the length of the list.
|
2011-02-14 20:20:19 -05:00
|
|
|
//
|
2013-09-30 13:59:58 -04:00
|
|
|
#define NSCALES 4
|
|
|
|
|
|
|
|
//
|
|
|
|
// 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
|
2011-01-29 19:32:52 -05:00
|
|
|
|
2011-02-14 20:20:19 -05:00
|
|
|
//
|
|
|
|
// Scales
|
|
|
|
// ------
|
|
|
|
//
|
2012-10-14 00:21:52 -07:00
|
|
|
uint16_t scales[NSCALES][2] = {\
|
2012-10-14 00:19:57 -07:00
|
|
|
// Stamps.com Model 510 5LB Scale
|
2011-12-31 15:42:08 -05:00
|
|
|
{0x1446, 0x6a73},
|
|
|
|
// USPS (Elane) PS311 "XM Elane Elane UParcel 30lb"
|
2012-10-14 00:19:57 -07:00
|
|
|
{0x7b7c, 0x0100},
|
|
|
|
// Stamps.com Stainless Steel 5 lb. Digital Scale
|
2013-09-30 13:59:58 -04:00
|
|
|
{0x2474, 0x0550},
|
|
|
|
// Mettler Toledo
|
|
|
|
{0x0eb8, 0xf000}
|
2011-02-13 20:39:00 -05:00
|
|
|
};
|