updates
This commit is contained in:
parent
6588188886
commit
8cf5784f1c
4 changed files with 46 additions and 3 deletions
|
@ -39,13 +39,24 @@
|
||||||
- VCC
|
- VCC
|
||||||
- GND
|
- GND
|
||||||
** Digital Analog Converter (PCM5102)
|
** Digital Analog Converter (PCM5102)
|
||||||
*** Pins
|
Communicates via the [[id:8f2e7b85-ede4-486b-ae5e-e36dd568552a][I2S]] protocol.
|
||||||
*** Pins
|
*** Pins
|
||||||
- BCK
|
- BCK
|
||||||
- DIN
|
- DIN
|
||||||
- LRCK
|
- LRCK
|
||||||
- VCC
|
- VCC
|
||||||
- GND
|
- GND
|
||||||
|
#+begin_comment
|
||||||
|
sck_pin = Pin(14) # Serial clock output
|
||||||
|
ws_pin = Pin(13) # Word clock output
|
||||||
|
sd_pin = Pin(12) # Serial data output
|
||||||
|
#+end_comment
|
||||||
|
| DAC Pin | I2S Counterpart | Pin |
|
||||||
|
|---------+-----------------------------------------------------------+------|
|
||||||
|
| LRCK | Word Clock (Word Select (WS) / Left-Right Clock (LRCLK))) | IO27 |
|
||||||
|
| DIN | Multiplexed Data Line (Serial Data (SD)) | IO26 |
|
||||||
|
| BCK | Bit Clock (Continuous Serial Clock / SCK) | IO25 |
|
||||||
|
| SCK | Master Clock (not part of the I2S standard) | GND |
|
||||||
|
|
||||||
*** Wiring notes
|
*** Wiring notes
|
||||||
[[https://raspberrypi.stackexchange.com/a/94951/154943]]
|
[[https://raspberrypi.stackexchange.com/a/94951/154943]]
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
|
|
||||||
#+begin_src sh :results silent
|
#+begin_src sh :results silent
|
||||||
pactl load-module module-null-sink sink_name=Network sink_properties=device.description=Network
|
pactl load-module module-null-sink sink_name=Network sink_properties=device.description=Network
|
||||||
pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 record=true port=8001 source=null-sink.monitor
|
pactl load-module module-simple-protocol-tcp rate=22050 format=s16le channels=2 record=true port=8001 source=null-sink.monitor
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
5
20230626171739-i2s.org
Normal file
5
20230626171739-i2s.org
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 8f2e7b85-ede4-486b-ae5e-e36dd568552a
|
||||||
|
:END:
|
||||||
|
#+title: I2S
|
||||||
|
Inter-IC Sound Bus Protocol
|
27
20230627235323-xmage.org
Normal file
27
20230627235323-xmage.org
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 01663abf-a6c3-434d-a710-bcbcddfdcc1e
|
||||||
|
:END:
|
||||||
|
#+title: XMage
|
||||||
|
An open-source implementation of [[id:d5efa5bd-dac9-4ef5-b352-a2b794a37bd0][Magic: The Gathering]].
|
||||||
|
* Developing
|
||||||
|
** Requirements
|
||||||
|
- JDK 1.8+
|
||||||
|
- Maven
|
||||||
|
|
||||||
|
Ensure the correct JDK is set:
|
||||||
|
: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
|
||||||
|
|
||||||
|
To build, use:
|
||||||
|
: mvn clean install -DskipTests
|
||||||
|
|
||||||
|
To run the server:
|
||||||
|
#+begin_src sh
|
||||||
|
cd Mage.Server
|
||||||
|
mvn exec:java -Dexec.mainClass=mage.server.Main
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
To run the client:
|
||||||
|
#+begin_src sh
|
||||||
|
cd Mage.Client
|
||||||
|
mvn exec:java -Dexec.mainClass=mage.client.MageFrame
|
||||||
|
#+end_src
|
Loading…
Reference in a new issue