Some code adjustments to PWM.

This commit is contained in:
Marvin Blum
2017-03-31 19:32:37 +02:00
parent 9f58ccfd83
commit 2af06f8e0a
2 changed files with 4 additions and 4 deletions

2
main.c
View File

@@ -33,7 +33,6 @@ void prepare(){
// PWM example
pin_mode(A1, INPUT);
pin_mode(6, OUTPUT);
}
unsigned char pwm = 0;
@@ -56,6 +55,7 @@ void loop(){
// PWM example
int analog = map(analog_read(A1), 0, 1023, 0, 255);
analog_write(3, analog);
analog_write(6, analog);
char out[15];