mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-12-12 20:41:05 +01:00
37c26ecadb
This commit basically copy-pastes the last commits from https://dev.s-ul.net/VeroxZik/segatools/-/commits/master to add OpenITHM LED support. Doesn't need to edit segatools.ini because the relevant config lines are already there for some reason. Tested with my OpenITHM controller and behaves exactly like the other fork. Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/26 Co-authored-by: d4nin3u <d4nin3u@gmail.com> Co-committed-by: d4nin3u <d4nin3u@gmail.com>
16 lines
328 B
C
16 lines
328 B
C
/*
|
|
Serial LED implementation for chuniio
|
|
|
|
Credits:
|
|
somewhatlurker, skogaby
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include "chuniio/leddata.h"
|
|
|
|
HRESULT led_serial_init(wchar_t led_com[12], DWORD baud);
|
|
void led_serial_update(struct _chuni_led_data_buf_t* data);
|
|
void led_serial_update_openithm(const byte* rgb); |