Compare commits
4 Commits
3b07e468bf
...
e8d4b836c5
Author | SHA1 | Date |
---|---|---|
Oliver Schmidt | e8d4b836c5 | |
Oliver Schmidt | 75017f5011 | |
Oliver Schmidt | d360b46474 | |
Oliver Schmidt | c029e1847a |
16
README.md
16
README.md
|
@ -6,11 +6,19 @@
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
1. Flash [Apple-II-Pi.uf2](https://github.com/oliverschmidt/apple2pi/releases/latest/download/Apple-II-Pi.uf2) to the Raspberry Pi Pico.
|
1. Flash [Apple-II-Pi.uf2](https://github.com/oliverschmidt/apple2pi/releases/latest/download/Apple-II-Pi.uf2) to the A2Pico.
|
||||||
|
|
||||||
2. Install [Raspberry Pi OS](https://www.raspberrypi.org/software/).
|
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.
|
||||||
|
|
||||||
3. Execute
|
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
|
||||||
```
|
```
|
||||||
sudo apt install git libfuse-dev -y
|
sudo apt install git libfuse-dev -y
|
||||||
git clone https://github.com/oliverschmidt/apple2pi.git
|
git clone https://github.com/oliverschmidt/apple2pi.git
|
||||||
|
@ -19,7 +27,7 @@
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Execute `sudo systemctl start a2pi.service` to run the Apple II Pi Daemon right away.
|
7. Execute `sudo systemctl start a2pi.service` to run the Apple II Pi Daemon right away.
|
||||||
|
|
||||||
## Using
|
## Using
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,10 @@ SOFTWARE.
|
||||||
|
|
||||||
extern const __attribute__((aligned(4))) uint8_t firmware[];
|
extern const __attribute__((aligned(4))) uint8_t firmware[];
|
||||||
|
|
||||||
static bool active;
|
static volatile bool active;
|
||||||
|
|
||||||
static void __time_critical_func(callback)(uint gpio, uint32_t events) {
|
static void __time_critical_func(reset)(bool asserted) {
|
||||||
if (events & GPIO_IRQ_EDGE_FALL) {
|
if (asserted) {
|
||||||
active = false;
|
active = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ void __time_critical_func(board)(void) {
|
||||||
|
|
||||||
a2pico_init(pio0);
|
a2pico_init(pio0);
|
||||||
|
|
||||||
a2pico_resetcallback(&callback);
|
a2pico_resethandler(&reset);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
uint32_t pico = a2pico_getaddr(pio0);
|
uint32_t pico = a2pico_getaddr(pio0);
|
||||||
|
|
Loading…
Reference in New Issue