Fix ESP32 servos, platformio.ini, etc. (#14247)

This commit is contained in:
felixstorm
2019-06-11 06:22:19 +02:00
committed by Scott Lahteine
parent a373d3f557
commit 9439fab7fd
6 changed files with 24 additions and 18 deletions

View File

@@ -193,6 +193,9 @@ void HAL_adc_start_conversion(uint8_t adc_pin) {
}
void analogWrite(int pin, int value) {
if (!PWM_PIN(pin)) return;
static int cnt_channel = 1,
pin_to_channel[40] = {};
if (pin_to_channel[pin] == 0) {