When did North Carolina establish public schools?

Funding to establish the first public schools in North Carolina was granted in 1825. The first of these opened in 1840 in Rockingham County.