After debugging a hardware prototype I'm making with an Arduino-like board and ATmega328, I noticed that the RF library VirtualWire disables PWM signal in pin D10. Why is that?
If I comment out the bit of code below, analogWrite (PWM) on pin D10 works again:
setup() {
...
vw_set_rx_pin(2);
vw_setup(2000); // Bits per sec
vw_rx_start(); // Start the receiver PLL running
analogWrite(10, 180);
...
}