Found it. Two issues. One, I used IO16. It is also used by psram. And two, I was running out of heap.