summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
blob: c9326d57ebf0ca1f6e35c7544b1f29dadf0ead37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <cstdint>

namespace Pinetime {
  namespace Controllers {

    class MotorController {
    public:
      MotorController() = default;

      void Init();
      void RunForDuration(uint8_t motorDuration);
      void StartRinging();
      static void StopRinging();

    private:
      static void Ring(void* p_context);
      static void StopMotor(void* p_context);
    };
  }
}