I've used cayenne similar to how you probably used the ground pepper. It works to an extent, but it's not a permanent solution for sure. I have a problem with them eating my tomatoes, especially early in the season, but I haven't had a ton of success keeping them away except to maybe deter them for a bit here and there.