mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-09-28 22:54:53 +00:00
Compare commits
No commits in common. "e8d4b836c5a57813b8cc064adc4408459e6f201c" and "3b07e468bfea0effff7f752860a7c8b93e69d163" have entirely different histories.
e8d4b836c5
...
3b07e468bf
16
README.md
16
README.md
@ -6,19 +6,11 @@
|
||||
|
||||
## Installing
|
||||
|
||||
1. Flash [Apple-II-Pi.uf2](https://github.com/oliverschmidt/apple2pi/releases/latest/download/Apple-II-Pi.uf2) to the A2Pico.
|
||||
1. Flash [Apple-II-Pi.uf2](https://github.com/oliverschmidt/apple2pi/releases/latest/download/Apple-II-Pi.uf2) to the Raspberry Pi Pico.
|
||||
|
||||
2. Connect the [Raspberry Pi Zero 2 W](https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/) to the A2Pico via a USB OTG cable.
|
||||
2. Install [Raspberry Pi OS](https://www.raspberrypi.org/software/).
|
||||
|
||||
3. Activate the USB Power on the A2Pico.
|
||||
|
||||
4. Connect the HMDI monitor to the Raspberry Pi Zero 2 W:
|
||||
|
||||
![Setup](https://github.com/oliverschmidt/apple2pi/assets/2664009/ac5e954a-3c80-4ab0-974b-b3e2394cd747)
|
||||
|
||||
5. Install [Raspberry Pi OS](https://www.raspberrypi.org/software/).
|
||||
|
||||
6. Execute
|
||||
3. Execute
|
||||
```
|
||||
sudo apt install git libfuse-dev -y
|
||||
git clone https://github.com/oliverschmidt/apple2pi.git
|
||||
@ -27,7 +19,7 @@
|
||||
sudo make install
|
||||
```
|
||||
|
||||
7. Execute `sudo systemctl start a2pi.service` to run the Apple II Pi Daemon right away.
|
||||
4. Execute `sudo systemctl start a2pi.service` to run the Apple II Pi Daemon right away.
|
||||
|
||||
## Using
|
||||
|
||||
|
@ -30,10 +30,10 @@ SOFTWARE.
|
||||
|
||||
extern const __attribute__((aligned(4))) uint8_t firmware[];
|
||||
|
||||
static volatile bool active;
|
||||
static bool active;
|
||||
|
||||
static void __time_critical_func(reset)(bool asserted) {
|
||||
if (asserted) {
|
||||
static void __time_critical_func(callback)(uint gpio, uint32_t events) {
|
||||
if (events & GPIO_IRQ_EDGE_FALL) {
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
@ -45,7 +45,7 @@ void __time_critical_func(board)(void) {
|
||||
|
||||
a2pico_init(pio0);
|
||||
|
||||
a2pico_resethandler(&reset);
|
||||
a2pico_resetcallback(&callback);
|
||||
|
||||
while (true) {
|
||||
uint32_t pico = a2pico_getaddr(pio0);
|
||||
|
Loading…
Reference in New Issue
Block a user