ZotBins Core
Loading...
Searching...
No Matches
RealWeight.hpp
Go to the documentation of this file.
1
8
9#ifndef REAL_WEIGHT_HPP
10#define REAL_WEIGHT_HPP
11
12#include "IWeight.hpp"
13#include "hx711.h"
14
15namespace Weight
16{
21 class RealWeight final : public IWeight
22 {
23 public:
28 RealWeight();
29
35 int32_t getWeight() override;
36
37 private:
42 hx711_t mRealSensor;
43 };
44}
45#endif
Header file for IWeight class.
Interface (abstract) class for mock and real hardware weight sensor. Used to inherit the getWeight me...
Definition IWeight.hpp:22
int32_t getWeight() override
Returns the weight.
Definition RealWeight.cpp:17
RealWeight()
Constructs an instance of the RealWeight class.
Definition RealWeight.cpp:5
Definition hx711.h:63