LDR with 7 seg display and PWM output

UKHeliBob:
What does it do that is wrong ? Does it work predictably if you set the value variable to a fixed number rather than calculating it ? Have you tried printing the value variable and if so what range of values do you get ? How is the LDR wired ?

Paul__B:
Need to read the "How to Post".

All of it.

Seriously!

Paul__B:
Need to read the "How to Post".

All of it.

Seriously!

Thanks Paul for that link and sorry - first time user in this forum. I'll use it in future.