Hi,
Im not looking to display anything I just want to give a false VSS above 40 mph, Ive done a bit of research and come up with this. would this work?
void setup() {
// put your setup code here, to run once:
const int hardwareCounterPin = 5;
const int samplePeriod = 1000;
unsigned int count;
unsigned int vssout;
}
void loop() {
bitSet(TCCR1B, CS12);
bitSet(TCCR1B, CS11);
delay(samplePeriod);
TCCR1B = 0;
count = TCNT1;
TCNT1 = 0;
if (count > 88) int vssout = 222;
if (count <11) int vssout = 0;
analogWrite(pin, vssout);
}