summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
blob: bdc20c0cb7c9bafa95d3e27ae719130a2674981f (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:
        static void vibrate(void * p_context);
    };
  }
}