chuniio-tasoller/README.md

70 lines
1.8 KiB
Markdown
Raw Normal View History

## chuniio-tasoller *with air tower LEDs*
2022-01-23 00:28:12 +00:00
chuniio driver for tasoller custom 2.0 firmware
2023-12-19 23:13:47 +00:00
now with working air tower LEDs when using [Dniel97 segatools](https://gitea.tendokyu.moe/Dniel97/segatools/src/branch/chuniio)
this currently only works with the chuniio branch of segatools, but may work on the main branch in the future
thanks to:
2023-12-19 23:13:47 +00:00
- [**akiroz**](https://dev.s-ul.net/akiroz/chuniio-tasoller) for the original code and USB Protocol information
- [**Dniel97**](https://gitea.tendokyu.moe/Dniel97) for rewritting my failed attempts at making this work
2023-12-19 23:13:47 +00:00
the current implementation may not be fully arcade accurate, but should be visually acceptable during gameplay
this should hopefully be addressed in the future
2022-01-23 00:28:12 +00:00
2023-12-19 23:13:47 +00:00
2022-03-17 17:45:24 +00:00
Supported titles:
- Chunithm
- Chunithm NEW
2023-12-19 23:13:47 +00:00
- Chunithm NEW PLUS
- Chunithm SUN
- Chunithm SUN PLUS
2022-01-26 19:34:20 +00:00
2022-03-17 17:45:24 +00:00
## Configuration
segatools.ini
```ini
[chuniio]
2023-12-19 23:13:47 +00:00
;; For Chunithm
;path=chuniio_tasoller.dll
;; For Chunithm NEW or newer
path32=chuniio_tasoller.dll
path64=chuniio_tasoller_x64.dll
2022-03-17 17:45:24 +00:00
2023-12-19 23:13:47 +00:00
;; Uncomment for Chunithm NEW or newer
chusan=1
2022-03-17 17:45:24 +00:00
[io3]
test=0x31
service=0x32
coin=0x33
```
2022-01-23 12:37:04 +00:00
## USB Protocol
Custom firmware USB device: 1CCF:2333
- Interface 1
- Endpoint 4 IN Interrupt (0x84)
2022-01-26 19:34:20 +00:00
- data len: 36 bytes
- data[0-2]: {0x68, 0x66, 0x84} (magic?)
2022-01-23 12:37:04 +00:00
- data[3]
2022-01-26 20:03:59 +00:00
- bit 0-5: beam 1-6 (1 = blocked)
- bit 6-7: fn1 & fn2 (1 = pressed)
2022-01-23 12:37:04 +00:00
- data[4-35]: touch sensor 1-32 pressure
- Endpoint 3 OUT Bulk (0x03)
2022-01-26 19:34:20 +00:00
- data len: 240 bytes
- data[0-2]: {0x42, 0x4C, 0x00} (magic?)
- data[3-95]: Slider LED (GRB order, right->left)
- data[96-167]: Left LED (GRB order top->bottom)
- data[168-239]: Right LED (GRB order bottom->top)
2022-01-23 12:37:04 +00:00
2022-01-23 00:28:12 +00:00
### Build
```
$ git clone ...
2022-01-26 21:59:31 +00:00
$ git submodule update --init
2022-03-19 10:02:42 +00:00
$ zig build -Drelease-safe=true
2022-01-23 00:28:12 +00:00
$ ls zig-out/lib/chuniio_tasoller.dll
```