New service initializers
This commit is contained in:
Родитель
aa150bca18
Коммит
edacc0cbdf
2
jacdac-c
2
jacdac-c
|
@ -1 +1 @@
|
|||
Subproject commit 2326fc6822d21888de47e4cbf421be84df6b46a4
|
||||
Subproject commit 020ac177763ad72e7b4c61bcb745187db495d46d
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#define PIN_PWR PA_10
|
||||
|
||||
#define PIN_SERVO PA_7
|
||||
#define PIN_AMOSI PA_7
|
||||
#define PIN_ASCK PA_5
|
||||
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
DEVICE_CLASS(0x34dd5196, "JM ArcadeBtn v2.0");
|
||||
|
||||
void app_init_services() {
|
||||
btn_init(PA_10, PA_4);
|
||||
btn_init(PA_10, 1, PA_4);
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ DEVICE_CLASS(0x30838b8e, "JM Crank+Btn v2.0");
|
|||
|
||||
void app_init_services() {
|
||||
crank_init(PA_6, PA_5);
|
||||
btn_init(PA_4, -1);
|
||||
btn_init(PA_4, 0, -1);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include "jdprofile.h"
|
||||
#include "jacdac/dist/c/light.h"
|
||||
|
||||
DEVICE_CLASS(0x35643e91, "JM PWM (npx) v2.0");
|
||||
|
||||
void app_init_services() {
|
||||
light_init();
|
||||
light_init(JD_LIGHT_LIGHT_TYPE_WS2812B_GRB, 15, 200);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
|
||||
// needed by light service
|
||||
#define PIN_PWR PA_10
|
||||
#define PIN_SERVO PA_7
|
||||
#define PIN_AMOSI PA_7
|
||||
#define PIN_ASCK PA_5
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "jdprofile.h"
|
||||
#include "jacdac/dist/c/light.h"
|
||||
|
||||
DEVICE_CLASS(0x3c6bebe4, "JM PWM+PWR (npx) v2.1");
|
||||
|
||||
|
@ -8,5 +9,5 @@ void app_init_services() {
|
|||
pin_set(PF_1, 0); // enable JD power
|
||||
#endif
|
||||
// The sense lines are not connected on this hw revision, so we just skip the actual power service.
|
||||
light_init();
|
||||
light_init(JD_LIGHT_LIGHT_TYPE_WS2812B_GRB, 15, 200);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче