Skip to content

Commit acedd45

Browse files
v1.0.0
0 parents  commit acedd45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+14487
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Example: Keyboard Mouse Target Data
2+
3+
This example demonstrates using a keyboard and mouse plugged into Dock, as well as reading and writing with APF Target commands.
4+
By default, the core boots into a gray screen with a mouse cursor. The framebuffer can be drawn on either by using the mouse or keyboard.
5+
In the bottom right of the screen are spaces for 4 small colored boxes indicating the connection status of the 4 controller slots.
6+
7+
On mouse, the controls are
8+
* LMB: Draw
9+
10+
On keyboard, the controls are
11+
* Arrow keys: Move cursor
12+
* Left CTRL: Draw
13+
14+
On controller 1:
15+
* A/B/X/Y buttons: Reload the framebuffer with 1 out of 4 images read using APF Target commands.
16+
* Select button: Save the franebuffer to slot ID 0x22. The asset file "saved.bin" will be created or overwritten.
17+
* Start button: Load the franebuffer from slot ID 0x22, corresponding to asset file "saved.bin".
18+
19+
Features demonstrated:
20+
21+
* SDRAM controller
22+
* Video generation
23+
* Dock mouse/keyboard
24+
* Cursor generation
25+
* Target read/write commands
26+
27+
28+
## Legal
29+
Analogue’s Development program was created to further video game hardware preservation with FPGA technology. Analogue does not support or endorse the use of infringing content.
30+
31+
Analogue Developers have access to Analogue Pocket I/O’s so Developers can utilize cartridge adapters or interface with other pieces of original or bespoke hardware to support legacy media.

audio.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"audio": {
3+
"magic": "APF_VER_1"
4+
}
5+
}

core.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"core": {
3+
"magic": "APF_VER_1",
4+
"metadata": {
5+
"platform_ids": [
6+
"ex_platform"
7+
],
8+
"shortname": "Keyboard Mouse Target Data",
9+
"description": "APF core example. Displays images loaded with Target commands",
10+
"author": "Example Author",
11+
"url": "https://github.com/open-fpga",
12+
"version": "1.0.0",
13+
"date_release": "2022-10-20"
14+
},
15+
"framework": {
16+
"target_product": "Analogue Pocket",
17+
"version_required": "1.1",
18+
"sleep_supported": false,
19+
"dock": {
20+
"supported": true,
21+
"analog_output": false
22+
},
23+
"hardware": {
24+
"link_port": false,
25+
"cartridge_adapter": -1
26+
}
27+
},
28+
"cores": [
29+
{
30+
"name": "default",
31+
"id": 0,
32+
"filename": "bitstream.rbf_r"
33+
}
34+
]
35+
}
36+
}

data.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"data": {
3+
"magic": "APF_VER_1",
4+
"data_slots": [
5+
{
6+
"name": "Image Bank",
7+
"id": "0x20",
8+
"required": true,
9+
"parameters": 2,
10+
"deferload": true,
11+
"filename": "ex_image_all.bin",
12+
"address": "0x00000000"
13+
},
14+
{
15+
"name": "Saved Image",
16+
"id": "0x22",
17+
"required": false,
18+
"parameters": 3,
19+
"deferload": true,
20+
"filename": "saved.bin"
21+
}
22+
]
23+
}
24+
}

dist/.gitkeep

Whitespace-only changes.

dist/assets/.keep

Whitespace-only changes.

dist/assets/ex_image_all.bin

720 KB
Binary file not shown.

dist/icon.bin

2.53 KB
Binary file not shown.
168 KB
Binary file not shown.

dist/platforms/ex_platform.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"platform": {
3+
"category": "Example Cores",
4+
"name": "Example Platform",
5+
"year": 2022,
6+
"manufacturer": "Example Manufacturer"
7+
}
8+
}

0 commit comments

Comments
 (0)