wörk on windows and REPL
parent
ce7edd38d7
commit
fd580bf13a
|
|
@ -122,25 +122,37 @@ Cooler: \href{https://micropython.org/}{MicroPython}
|
||||||
|
|
||||||
\section{Setup}
|
\section{Setup}
|
||||||
\subsection{Tools}
|
\subsection{Tools}
|
||||||
\begin{frame}{Tools}
|
\begin{frame}{Tools}\framesubtitle{Alle Downloads unter \url{https://iot.fswiai.de/}} %TODO
|
||||||
Linux
|
Linux
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Debian, Gentoo (testing), Arch: esptool picocom
|
\item Debian, Gentoo (testing): \texttt{\{apt install,emerge\} esptool picocom}
|
||||||
\item \texttt{adduser \$USER dialout}
|
\item \texttt{adduser \$USER dialout}
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
Windows
|
Windows
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item well, your on your own now...
|
\item \url{https://www.python.org}, z.B. 3.6.2 %TODO: WIAI-link
|
||||||
\item \url{https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe}
|
\begin{itemize}
|
||||||
|
\item Option \textit{Add Python to PATH} aktivieren
|
||||||
|
\end{itemize}
|
||||||
\item \texttt{pip install esptool}
|
\item \texttt{pip install esptool}
|
||||||
\item \url{https://www.chiark.greenend.org.uk/~sgtatham/putty/download.html}
|
\item \url{https://www.chiark.greenend.org.uk/~sgtatham/putty/download.html} %TODO: WIAI-link
|
||||||
|
\item CH340G Treiber: \url{http://www.wch.cn/download/CH341SER\_ZIP.html} %TODO: WIAI-link
|
||||||
|
\end{itemize}
|
||||||
|
Mac
|
||||||
|
\begin{itemize}
|
||||||
|
\item Irgendwie so ähnlich\dots
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\subsection{Firmware}
|
\subsection{Firmware}
|
||||||
\begin{frame}{Firmware}
|
\begin{frame}{Firmware}\framesubtitle{Alle Downloads unter \url{https://iot.fswiai.de/}} %TODO
|
||||||
|
Windows-Spezial:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item \url{https://micropython.org/download\#esp8266}
|
\item Portbezeichner: Gerätemanager $\rightarrow$ Serielle Geräte (COM+LPT) $\rightarrow$ COM$X$
|
||||||
|
\end{itemize}
|
||||||
|
Flashen:
|
||||||
|
\begin{itemize}
|
||||||
|
\item \url{https://micropython.org/download\#esp8266} %TODO: WIAI-link
|
||||||
\item \texttt{esptool.py --port /dev/ttyUSB0 erase\_flash}
|
\item \texttt{esptool.py --port /dev/ttyUSB0 erase\_flash}
|
||||||
\item \texttt{esptool.py --port /dev/ttyUSB0 --baud 460800 write\_flash --flash\_size=detect 0 esp8266-20170108-v1.8.7.bin}
|
\item \texttt{esptool.py --port /dev/ttyUSB0 --baud 460800 write\_flash --flash\_size=detect 0 esp8266-20170108-v1.8.7.bin}
|
||||||
\item reset
|
\item reset
|
||||||
|
|
@ -149,12 +161,37 @@ Windows
|
||||||
|
|
||||||
\subsection{REPL}
|
\subsection{REPL}
|
||||||
\begin{frame}{REPL}
|
\begin{frame}{REPL}
|
||||||
|
*nixe:
|
||||||
|
\begin{itemize}
|
||||||
|
\item \texttt{picocom -b 115200 /dev/ttyUSB0}
|
||||||
|
\item $n$ beherzte \textit{<ENTER>}-Drücke
|
||||||
|
\end{itemize}
|
||||||
|
Windows:
|
||||||
|
\begin{itemize}
|
||||||
|
\item puTTY
|
||||||
|
\item Serielle Verbindung
|
||||||
|
\item 115200 Baud
|
||||||
|
\item $n$ beherzte \textit{<ENTER>}-Drücke
|
||||||
|
\end{itemize}
|
||||||
|
%TODO: bild mit REPL (inkl ENTERs)
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\subsection{Wlan}
|
|
||||||
\begin{frame}{Wlan}\framesubtitle{Put the I in IoT}
|
|
||||||
|
|
||||||
|
\lstset{language=Python,captionpos=b}
|
||||||
|
\subsection{Wlan}
|
||||||
|
\begin{frame}[fragile]{Wlan}\framesubtitle{Put the I in IoT}
|
||||||
|
\begin{lstlisting}[caption={Descriptive Caption Text},label=DescriptiveLabel]
|
||||||
|
import network
|
||||||
|
sta_if = network.WLAN(network.STA_IF)
|
||||||
|
ap_if = network.WLAN(network.AP_IF)
|
||||||
|
|
||||||
|
ap_if.active(False)
|
||||||
|
sta_if.active(True)
|
||||||
|
|
||||||
|
sta_if.connect('SSID', 'SECRET') # TODO: setup
|
||||||
|
sta_if.isconnected()
|
||||||
|
sta_if.ifconfig()
|
||||||
|
\end{lstlisting}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\subsection{Init}
|
\subsection{Init}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue