Although computer science is unlikely to be taught at Hogwarts, Raspberry Pi computers would play an important role in this. Mo's project from That's-so-Mo allows the mage tired of summoning at the touch of a button to invoke a more natural remedy — the magic wand.
The Kano Harry Potter Coding Kit's wand is used in a way that is engaging for gamers.
A Python module from GammaGames that supports wands and gesture capture via a Bluetooth connection processes data. Hand gestures are translated into keystrokes, which are then sent to a PC running Hogwarts Legacy.
If a Hogwarts student is willing to spend time in Azkaban, the Harry Potter community has carefully chosen the movements needed to perform each spell. Mo has added these gestures to the program.