12 lines
504 B
C++
12 lines
504 B
C++
#include <cstdint>
|
|
|
|
// HX711 load cell
|
|
const int CONFIG_SCALE_DOUT_PIN = D2;
|
|
const int CONFIG_SCALE_SCK_PIN = D3;
|
|
const uint8_t CONFIG_TARE_AVG_COUNT = 50; // number of measurements in tare-phase (to find 0 )
|
|
const int CONFIG_VALUE_DIVIDER = 128; // uint32 measurements are divided by this factor, before stored in uint16_t
|
|
const int CONFIG_MEASURE_DELAY = 100; // interval in ms between measurements
|
|
|
|
|
|
const uint32_t CONFIG_SESSION_CHUNK_SIZE = 1024*8 - 16 * sizeof(uint32_t);
|