Error: "using obsolete binding" in sketch

I don't think you need separate for() loops at all. In setup() and loop(), just one for() loop to cover the whole range should do.