There's no mention of an accident in your first post on this thread*. You "keep on hitting your shin on the pedal". This when shuffling your bike, when you need to get out of the way of cars or mounting the pavement where there's no dropped kerb.
Where is the left leg & foot when you're shuffling, in relation to the bike?
You're on a road vehicle, keep it on the road. I'll be honest and say you don't sound too confident riding on the road**.
The body is amazing at repairing itself, but repeated hits in the same area will slow down the healing process.
You can wear shin guards, but that isn't addressing the problem. They're a way of stopping you getting hit by the pedal, but not the problem that's causing the pedal to keep on hitting the same leg, in the same place. They're also a means of moving the problem on, or causing injury elsewhere. Unless you address the issue with your shuffling.
*Is where you slipped whilst turning slowly the accident you mention in your reply? If it is, find a quiet stretch of tarmac free of traffic, where you can practice turning either way at a slow speed.
Edited to add
**Assuming you are being serious for the moment, I'd advise giving up the cycling and stick to walking. Sooner or later you'll end up hurting someone other than yourself. You hurt yourself, you've only yourself to blame.
I'm not going to 'give up cycling'. Yes that's the part in my op where I wrote I slipped. As I said it was bricks, my tire pressure was high but within the parameters of the tires acceptable pressure range, and I cannot stress the fact that it was bricks. Smoothish bricks. It went from tarmac road to bricks. Ground was wet. I never slipped while turning on tarmac. I rode the bike in the rain on gravel and tarmac over 18 miles just fine before.
This time when I slipped, it was a very short ride into town. That brick section I have never cycled on before. As I've now learnt, it's very slippery when wet.
It was also about -2c.
The tires are entry level tires too. There are many factors as to why I slipped. And I slipped ONE TIME having owned this bike for almost a year now... but I should GIVE UP cycling because I fell one time in those conditions on that particular brick path!?
I've attached photos of that brick section. I slid into that tree on the left. Very slowly as I wasn't going fast. I was turning left.
Your reply isn't very helpful. You're just blaming me and telling me not to cycle.
I had cycles before this when I was younger and never had this issue of shin hitting pedal, but then I never rode as much and as far as I do now. BUT it never happened on any other cycle I rode ever before. Even when I rented one about 4 years ago or so, and I did 30 miles or so on it.
It seems to be just this specific bike it happens to me on which I bought new last year.
Regardless. I think it's horrible that you tell me to give up cycling.
I don't know where my left foot and leg are in relation to my pedal when I shuffle. As I said I'm not looking or paying attention to that when I shuffle. I'm fearing for my life. Or sometimes I shuffle to see a nice view, in which case I'm still not looking down at my legs etc.
I can't always just keep cycling on the road. Example. I cycled 40 miles in one journey last month, and there was a uphill bit on road. If I had cycled the entire road without stopping to giveaway for traffic I would have caused a traffic jam going back miles. Not to mention drivers getting very angry and overtaking dangerously. That road has almost no straight bits and plenty of blind corners and isn't OK to overtake on as it's kinda narrow. Not that narrow. But kinda. So when I heard cars coming up behind me, I would pull over to the side and let them pass. I would have to shuffle sometimes because I wasn't far enough over or something like that. I can't remember exactly why I shuffle.
How would shin guards move the problem on??!! They would just stop the pedal hurting my shin.
I suspect the bike may be a bit too small for me which may be why I get the shin hitting pedal issue. A medium in 'X's companies bike may not be the same size as a medium in 'Y's' companies bike. Bike sizes vary from manufacturer to manufacturer despite being listed as the same size. Much like shoes.
The bike that I rented 4 or so years ago was I believe a large. You don't pick the size of the bike on the site. You get given a bike on the day.