Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support esp32 boards #2038

Merged
merged 3 commits into from
Sep 15, 2020
Merged

Support esp32 boards #2038

merged 3 commits into from
Sep 15, 2020

Conversation

brusherru
Copy link
Contributor

This PR includes:

  • fix of adding new URLs into extra.txt: updated arduino-cli returns "ENOENT" code instead of 6 when JSON file is not found and our catch does not work as expected. This bug does not break a loading new file, but it shows an error message, and list of boards appears only after clicking "Update" button or opening of the upload popup next time.
  • Bundle https://github.com/madhephaestus/ESP32Servo library into desktop IDE to support PWM and Servos without requiring libraries from the internet
  • Tweak xod-dev/servo/servo-device and xod/gpio/pwm-write to use the bundled library and work fine on ESP32

@brusherru brusherru self-assigned this Sep 15, 2020
@brusherru brusherru changed the base branch from master to 0.35.x September 15, 2020 14:29
// Catch error produced by arduino-cli, but actually it's not an error:
// When User added a new URL into `extra.txt` file it causes that
// arduino-cli tries to read new JSON but it's not existing yet
// so it fails with error "no such file or directory"
// To avoid this and make a good UX, we'll force call `updateIndexes`
return updateIndexesInternal(wsPath, cli).then(() => listBoards(cli));
return updateIndexesInternal(wsPath, cli).then(() =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above is stale now. Needs update.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔
It still actual, but I'll edit it a bit.

Copy link
Contributor

@evgenykochetkov evgenykochetkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

Copy link
Member

@nkrkv nkrkv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@brusherru brusherru merged commit f80a372 into 0.35.x Sep 15, 2020
@brusherru brusherru deleted the feat-stdlib-support-esp32 branch September 15, 2020 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants