Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions targets/jm-touch-test-35-1.0/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#define PIN_LED PA_1
#define PIN_LED_GND -1

// RGB LED sink connected to these pins
#define PIN_LED_R PA_10
#define PIN_LED_G PA_9
#define PIN_LED_B PB_1

// these values calibrate to ~60lux for each of ff0000, 00ff00, 0000ff
#define LED_R_MULT 250
#define LED_G_MULT 150
#define LED_B_MULT 42
#define RGB_LED_PERIOD 600

#define PIN_BL_LED PIN_LED_B
#define PIN_BL_PERIOD 300

#define PIN_TOUCH0 PA_4
#define PIN_TOUCH1 PA_5

#define PIN_PWR -1
#define PIN_P0 -1
#define PIN_P1 -1

// #define PIN_SDA PA_10
// #define PIN_SCL PA_9
// #define I2C_AF LL_GPIO_AF_4

#define UART_PIN PA_2
#define UART_PIN_AF LL_GPIO_AF_1
#define USART_IDX 1
2 changes: 2 additions & 0 deletions targets/jm-touch-test-35-1.0/config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MCU = STM32F030x4
include $(PLATFORM)/mk/stm32f0.mk
9 changes: 9 additions & 0 deletions targets/jm-touch-test-35-1.0/profile/touch.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "jdprofile.h"

FIRMWARE_IDENTIFIER(0x375c4bf6, "JM Touch Test v1.0");


void app_init_services() {
touch_init(PIN_TOUCH0);
touch_init(PIN_TOUCH1);
}