hi guys;
i try to change my arduino fréquence that i can use my IR, so i write this code:
byte changement_de_frequence = 0x6D;
int buttonstats = 1;
void setup() {
// put your setup code here, to run once:TCCR0B = TCCR0B & 0b11111000 | changement_de_frequence;
pinMode(9, OUTPUT);
pinMode(8, INPUT_PULLUP);}
void loop() {
buttonstats = digitalRead(8);if(buttonstats == LOW)
{
analogWrite(9, 128);
delay(1000);//delayMicroseconds(20);//20
analogWrite(9, 0);
}
else{
}// put your main code here, to run repeatedly:
}
but that's not work
can someone correct my code please ? thanks first