I tried with VirtualBox first, which seems to be a more popular virtual machine, and i could not make it work
With VMware it worked
I got this version:
As for Xubuntu i got it from here:
the 22.04 version
Once xubuntu is installed ( make sure to give it enough disc space and ram usage, otherwise it will be super slow and laggy )
the first step is to go install and update what you need to run those commands in the tutorial
First of all if when xubuntu is installed it says there is a new version available let it download and update it
Then open the terminal, from the top left icon it opens the menu and you can find it there, it is a black icon that looks and works very similar to windows command prompt
and type,
one line at a time:
close the terminal then open it again and type
close the terminal then open it again and type
Code:
sudo apt-get update -qy
sudo apt-get upgrade -qy
Then i went here:
Followied the points:
2.1. Get the SDK
and
2.2. Install the Toolchain
always by typing in the Terminal, just copy and paste the lines inside those grey boxes, one at a time
Using Xubuntu web browser i choosed the image i wanted to use and went here
resizing it to 320 x 120
then i opened the resized image with GIMP, which is already installed inside Xubuntu
You have to click at the top on Image>Mode>Indexed.
In the new window that opens click "Use black and white (1-bit) palette." If the image is not black and white already, change the drop-down menu next to color dithering to "Floyd-Steinberg (normal)" Once done, click convert.
Lastly Click File>Export As...
give it an easy name, like IMAGEX.png so it is easier to type later
I downloaded splork from github and extracted it on the xubuntu desktop
i opened the folder splork-main > imageconverter
then i right clicked and choosed to open a terminal there and then typed
Code:
pip3 install -Ur requirements.txt
In this passage, it might say you can't to it because you don't have python / pyp3 installed, but it will also tell how to get it so follow what it says
then once done retry with the
pip3 install -Ur requirements.txt
Take the IMAGEX.png file you created earlier and put it inside the imageconverter folder
then right click and open terminal there again and type
Code:
python3 instructionconverter.py IMAGEX.png
a new file will be created called drawing.h
take that file and bring it inside the splork-main > rp2040src folder
Choose to open a terminal there and type, one line at a time:
Code:
mkdir build
cd build
The next line you have to change a bit by typing the username you choose:
export PICO_SDK_PATH=/home/THE USERNAME YOU CHOOSE WHEN YOU INSTALLED XUBUNTU/pico/pico-sdk
So in my case it was
export PICO_SDK_PATH=/home/franky/pico/pico-sdk
then:
cmake ..
make
Once done a new folder will be inside the rp2040src folder, called build
You have to open the build folder and if everything went correctly inside there you will have a file called splork.uf2
That is the file that needs to go inside the Raspberry pi pico
I was not able to connect the raspberry to the virtual machine, and for some reason not even able to transfer files from real machine to virtual, so what i did was, while inside xubuntu:
Open internet browser and go here:
uploaded the splork.uf2 file there and once done i copied the download link to my real windows browser and downloaded it there
Then while holding down BOOTSEL button on the Raspberry pi pico, plug it onto your computer
the board will be recognized as a normal usb stick, so just copy the splork.uf2 inside there and that's it
I went to the drawing screen in splatoon 3, selected the smallest pen and put the cursor at the top left
then i pressed the sync button on the joycons in order to make the sync controller screen appear, connected the pi pico to the usb on the side of the dock and it got recognized
Then i pressed the button on the pi pico board and it started drawing