You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,10 +26,10 @@ This project is intended to be overlayed on top of an existing firmware repo, i
26
26
27
27
- Clone the [Flipper Zero firmware repository](https://github.com/flipperdevices/flipperzero-firmware). Refer to [this tutorial](https://github.com/jamisonderek/flipper-zero-tutorials/tree/main/firmware/updating/README.md) for updating the firmware.
28
28
- Copy the "pokemon" folder into the `/applications_user/pokemon` folder in your firmware.
29
-
- Run the command `fbt launch_app` to run it on your Flipper Zero.
29
+
- Run the command `fbt launch` to run it on your Flipper Zero.
30
30
31
31
```bash
32
-
./fbt launch_app APPSRC=pokemon
32
+
./fbt launch APPSRC=pokemon
33
33
```
34
34
35
35
- NOTE: If you only want to generate the fap file, you must run the following command.
@@ -50,9 +50,9 @@ These instructions assume that you are starting at the Flipper Zero desktop. Oth
50
50
51
51
- Press the `OK` button on the Flipper to open the main menu.
52
52
- Choose `Applications` from the menu.
53
-
- Choose `Game Boy` from the submenu.
53
+
- Choose `GPIO` from the submenu.
54
54
- Choose `Pokemon Trading`
55
-
- The Flipper Zero should show the selection of Pokemon that you want to trade, and by default, it appears as bulbasaur.
55
+
- The Flipper Zero will show the main menu of the application. The first option is to select the Pokemon to trade.
56
56
57
57
<palign='center'>
58
58
<br />
@@ -62,74 +62,94 @@ These instructions assume that you are starting at the Flipper Zero desktop. Oth
62
62
63
63
- Press the `LEFT`/`RIGHT` buttons to paginate the selection of Pokemon by 1.
64
64
- Press the `UP`/`DOWN` buttons to paginate the selection of Pokemon by 10.
65
-
- Press the `OK` button to select the Pokemon to trade.
65
+
- Press the `OK` button to select the Pokemon to trade and return to the main menu
- The Flipper Zero should show the selection of the Pokemon's level that you want to trade, and by default, it appears as level 1.
72
+
- The traded Pokemon's nickname can be set. When a Pokemon is selected, the nickname defaults to the species name in all caps. This mimics a Pokemon without a customized nickname. In order to reset this nickname to its default, clear the text entry field, press `OK` on the `Save` button. This will fill the text box with the default name. Press `Save` again to set this name.
73
+
-**Note:** The Nidoran♀ and Nidoran♂ names will not properly render. This is because the Flipper currently cannot print unicode characters to screen. Following the above instructions will fill the text entry field with `NIDORAN ` with a space after it. This space is the unrenderable ♀/♂ symbol. Once traded, it will be correctly named.
74
+
-**Note:** Only alphanumeric characters are supported in the Pokemon's nickname at this time.
- The Pokemon's level can be adjusted as well by hitting `OK` on the level option. The minimum level is `2` and the maximum is `100`. The level is input via a text box. (Levels below 2 cause an underflow glitch in Gen I games that would cause the level to jump to 100, so if you want this just set the Pokemon's level to 100)
- Press the `LEFT`/`RIGHT` buttons to paginate the selection of the Pokemon's level by 1.
81
-
- Press the `UP`/`DOWN` buttons to paginate the selection of the Pokemon's level by 10.
82
-
- Press the `OK` button to select the Pokemon's level to trade.
90
+
- The `Select Moves` menu is used to pick the set the traded Pokemon's moves. They are pre-populated with the moveset that the Pokemon would know at level 1. Selecting a move slot will bring up an alphabetical index of moves. Additionally, `No Move` and `Default` can be quickliy selected. Note that any move after the first `No Move` is ignored.
- Press the `LEFT`/`RIGHT` buttons to paginate the selection of the Pokemon's current move selection by 1.
99
-
- Press the `UP`/`DOWN` buttons to paginate the selection of the Pokemon's current move selection by 10.
100
-
- Press the `OK` button to select the Pokemon's current move selection to trade.
104
+
- The `Select Types` menu can change the traded Pokemon's types. The type(s) are pre-set to what the selected Pokemon normally is.
105
+
- Pokemon with a single type will have the same type set for both types.
106
+
-**Note:** Unlike other menus, changing either type immediately saves it. Pressing `Back` will keep any changes. This will be addressed in a later version. If you need to revert to the default types, a different Pokemon can be selected and the desired Pokemon re-selected.
107
+
-**Note:** When changing the type(s), the Pokemon's in-game stats will _NOT_ reflect the chosen type(s). Additionally, these may be overwritten back to default in-game if the Pokemon uses a move that affects types (e.g. `Transform`) or the Pokemon evolves.
- Press the `RIGHT`/`UP` buttons to paginate the selection of the Pokemon's stats selection by 1 positively.
117
-
- Press the `LEFT`/`DOWN` buttons to paginate the selection of the Pokemon's stats selection by 1 negatively.
118
-
- Press the `OK` button to select the Pokemon's current move selection to trade.
129
+
- The `OT ID#` and `OT Name` of the Pokemon can also be set. The `OT ID#` must be between `0` and `65535`. Setting the `OT ID#` and `OT Name` to the same as your current trainer's causes the game to believe it was a wild caught Pokemon and not one that was traded. This means high level Pokmon will still obey you without badges, but, will not get the experience boost of a traded Pokemon.
This is a Pokemon exchange application from Flipper Zero to Game Boy (Generación I). Flipper Zero emulates a "Slave" Game Boy connected to a Game Link Cable to be able to exchange any Pokemon from the First Generation (Red, Blue, Yellow) to a real Game Boy.
6
+
7
+
It is a Proof of Concept (POC) for using views, GPIO, and FURI (Flipper Universal Registry Implementation).
8
+
9
+
10
+
## Connection: Flipper Zero GPIO - Game Boy
11
+
12
+
The pins should be connected as follows:
13
+
14
+
| Cable Game Link (Socket) | Flipper Zero GPIO |
15
+
| ------------------------ | ----------------- |
16
+
| 6 (GND) | 8 (GND) |
17
+
| 5 (CLK) | 6 (B2) |
18
+
| 3 (SI) | 7 (C3) |
19
+
| 2 (SO) | 5 (B3) |
20
+
21
+
## How does it work?
22
+
23
+
The method used to communicate 2 Game Boys is based on the SPI protocol, which is a very simple serial communication protocol in which a master device communicates with one or more slave devices. The protocol is bidirectional and synchronous, and uses three basic signals:
24
+
25
+
- A clock signal (CLK).
26
+
- An output signal (Serial Out or SO).
27
+
- An input signal (Serial In or SI).
28
+
29
+
In the Game Boy, games store data in an internal shift register that is used to send and receive information. The SPI protocol used by the Game Boy uses the clock signal to indicate when data is being transferred.
30
+
31
+
The Game Boy link protocol is synchronous and requires the slave device to respond at the same rate as the master device. The master device supplies an 8KHz clock (data transfer rate of 1KB/s). The time window for responding is only **~120μs**. However, the slave device has no restrictions and can respond when it receives data. The clock can vary and there is no lower limit.
0 commit comments