From f1085f4fa42b69752dd741de22d4f4abb7e9cc91 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 10 Jun 2022 13:41:48 -0700 Subject: [PATCH] Update driver suggestions (#249) Co-authored-by: Stefan Agner --- package-lock.json | 4 +- src/no-port-picked/no-port-picked-dialog.ts | 64 +++++++++++++++++++-- 2 files changed, 60 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index c4d7fdb..3f3e4b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "esp-web-tools", - "version": "8.0.3", + "version": "8.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "esp-web-tools", - "version": "8.0.3", + "version": "8.0.4", "license": "Apache-2.0", "dependencies": { "@material/mwc-button": "^0.26.1", diff --git a/src/no-port-picked/no-port-picked-dialog.ts b/src/no-port-picked/no-port-picked-dialog.ts index cf09ee2..7241a31 100644 --- a/src/no-port-picked/no-port-picked-dialog.ts +++ b/src/no-port-picked/no-port-picked-dialog.ts @@ -1,9 +1,30 @@ -import { LitElement, html, css } from "lit"; +import { LitElement, html, css, svg } from "lit"; import { customElement } from "lit/decorators.js"; import "../components/ewt-dialog"; import "../components/ewt-button"; import { dialogStyles } from "../styles"; +const cloudDownload = svg` + + + + + +`; + @customElement("ewt-no-port-picked-dialog") class EwtNoPortPickedDialog extends LitElement { public doTryAgain?: () => void; @@ -29,27 +50,56 @@ class EwtNoPortPickedDialog extends LitElement { Most devices have a tiny light when it is powered on. If yours has one, make sure it is on. +
  • + Make sure that the USB cable you use can be used for data and is not + a power-only cable. +
  • Make sure you have the right drivers installed. Below are the drivers for common chips used in ESP devices:
    • - CP2102 (square chip): + CP2102 drivers: driverWindows & Mac
    • - CH341: + CH342, CH343, CH9102 drivers: driverWindows, + Mac +
      + (download via blue button with ${cloudDownload} icon) +
    • +
    • + CH340, CH341 drivers: + Windows, + Mac +
      + (download via blue button with ${cloudDownload} icon)
  • @@ -92,8 +142,10 @@ class EwtNoPortPickedDialog extends LitElement { li > ul { margin-top: 8px; } + ul, ol { margin-bottom: 0; + padding-left: 1.5em; } `, ];