Let's say I built something with an ESP32. Is it trivial to upgrade it to a Raspberry Pi? Do I have to rewrite my code or get new adapters for any connections?