Accrington Stanley have secured the services of striker Charlie Brown from Morecambe on a two-and-a-half-year contract, keeping him at the Wham Stadium until the summer of 2027.