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

#include <cstdint>
#include "app_timer.h"

namespace Pinetime {
  namespace Controllers {
    static constexpr uint8_t pinMotor = 16;

    class MotorController {
      public:
        void Init();
        void SetDuration(uint8_t motorDuration);

      private:
        app_timer_id_t vibTimer;
    };
  }
}