This page describes an experiment in using PyMata Express to communicate (using Firmata) between a Raspberry Pi and an ItsyBitsy microcontroller.
To install Pymata Express on Linux (including Raspberry Pi) and macOS computers, open a terminal window and type:
sudo pip3 install pymata-express
The FirmataExpress page describes how to install it on an Arduino, using the Arduino IDE.