Can I convert this to Arduino IDE

Thanks, yes that all makes sense. I see what you mean about burning bridges, but it shouldn't be a problem.