\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{4rtech} \pdfinfo{ /Title (arduino-cheatsheet-deutsch.pdf) /Creator (Cheatography) /Author (4rtech) /Subject (Arduino Cheatsheet Deutsch Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{1269F3} \definecolor{LightBackground}{HTML}{F0F5FE} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Arduino Cheatsheet Deutsch Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{4rtech} via \textcolor{DarkBackground}{\uline{cheatography.com/32532/cs/10027/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}4rtech \\ \uline{cheatography.com/4rtech} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 1st December, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{4} \begin{tabularx}{3.833cm}{x{1.16722 cm} x{2.26578 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Struktur}} \tn % Row 0 \SetRowColor{LightBackground} void setup() & wird einmal ausgeführt \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} void loop() & wird ewig ausgeführt \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Kontrolle}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{if (}}x\textless{}5{\bf{) \{}} {\emph{Code}} {\bf{\}}} & {\emph{Code}} wird ausgeführt wenn WAHR \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{else \{}} {\emph{Code}} {\bf{\}}} & {\emph{Code}} wird ausgeführt wenn {\bf{if}} FALSCH \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{for (}} int i = 0{\bf{;}} i \textless{} 255{\bf{; }} i++{\bf{) \{}} {\emph{Code}} {\bf{\}}} & {\bf{i}} ist 0, {\emph{Code}} wird ausgeführt, {\bf{i}} wird um 1 erh{\"o}ht. Solange wie {\bf{i}} kleiner 255. \tn % Row Count 10 (+ 5) % Row 3 \SetRowColor{white} {\bf{while (}} x \textless{} 6 {\bf{) \{}} {\emph{Code}} {\bf{\}}} & {\emph{Code}} wird solange ausgeführt wie x kleiner 6. {\bf{x}} muss im {\emph{Code}} ge{\"a}ndert werden. \tn % Row Count 15 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.99114 cm} x{1.44186 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Weitere Syntax}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{//}} {\emph{Kommentar...}} & einzeiliger Kommentar \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{/*}} {\emph{Kommentar...}} {\bf{*/}} & mehrzeiliger Kommentar \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{\#define}} PIN 13 & definiere Konstante \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{\#include \textless{}}}library.h{\bf{\textgreater{}}} & Library einfügen \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.20155 cm} x{2.23145 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Operatoren}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{=}} & definieren \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{+}}, {\bf{-}} & Addition, Subtraktion \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{*}}, {\bf{/}} & Multiplikation, Division \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{\%}} & Modulo / Rest \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{==}} & ist gleich? \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} {\bf{!=}} & ist nicht gleich? \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{\textless{}}} & ist kleiner \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} {\bf{\textgreater{}}} & gr{\"o}{\ss}er \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{\textless{}=}} & kleiner oder gleich \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} {\bf{\textgreater{}=}} & gr{\"o}{\ss}er oder gleich \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.0299 cm} x{2.4031 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Gemischte Zuweisung}} \tn % Row 0 \SetRowColor{LightBackground} x {\bf{++}} & Vergr{\"o}{\ss}erung von x um 1 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} x {\bf{-{}-}} & Verkleinerung von x um 1 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} x {\bf{+=}} y & Vergr{\"o}{\ss}erung von x um y \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} x {\bf{-=}} y & Verkleinerung von x um y \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} x {\bf{*=}} y & Multiplikation von x mit y \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} x {\bf{/=}} y & Division von x durch y \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Konstanten}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{true}}, {\bf{false}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{HIGH}}, {\bf{LOW}}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{INPUT}}, {\bf{OUTPUT}}} \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.0299 cm} x{2.4031 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Datentypen}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{3.833cm}}{{\bf{void}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{boolean}} & 0, 1, true oder false \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{char}} & z.B. 'a' oder -128 bis 127 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{unsigned char}} & 0 bis 255 \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{int}} & -32.768 bis 32.767 \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} {\bf{unsigned int}} & 0 bis 65.535 \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{long}} & -2.147.483.648 bis 2.147.483.647 \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} {\bf{float}} & -3,4028235*10\textasciicircum{}38\textasciicircum{} bis 3,4028235*10\textasciicircum{}38\textasciicircum{} \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.44186 cm} x{1.99114 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Arrays}} \tn % Row 0 \SetRowColor{LightBackground} int meineInts{[}6{]}; & erzeugt {\emph{int}} Array mit 6 Stellen \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} int meinePins{[}{]} = 2,4,6,8,10; & erzeugt und füllt Array mit 5 Stellen \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} int meineWerte{[}6{]} = 2,-4,9,3; & erzeugt Array mit 6 Stellen und füllt 5 davon \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Strings}} \tn % Row 0 \SetRowColor{LightBackground} char S1{[}15{]}; & erzeugt String mit 15 Stellen \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} char S2{[}10{]} = 'A','r','d','u','i','n','o'; & erzeugt String mit 10 Stelle und füllt die ersten 7 \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} char S3{[}{]} = "Arduino"; & erzeugt String und füllt ihn mit "Arduino" \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} char S4{[}15{]} = "Arduino"; & erzeugt String mit 15 STelle und füllt die ersten 7 mit "Arduino" \tn % Row Count 12 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Umwandlung}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{char() int() long()}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{byte() word() float()}}} \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.78959 cm} x{2.64341 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Bedingungen}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{static}} & erzeugt Variable die zwischen Funktionsaufrufen nicht gel{\"o}scht wird \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{volatile}} & erzeugt Variable die von Interrupts ver{\"a}ndert werden kann \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{const}} & erzeugt unver{\"a}nderbare Variable \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.61351 cm} x{1.81949 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Digital I/O}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{pinMode(}}{\emph{Pin}}, {\emph{mode{\bf{}})}} & {\"a}ndert {\emph{Pin}} zu INPUT, OUTPUT oder INPUT\_PULLUP \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{digitalWrite(}}{\emph{Pin}}, {\emph{Wert{\bf{}})}} & schaltet Output ein (1/HIGH) oder aus (0/LOW) \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} int {\bf{digitalRead(}}{\emph{Pin{\bf{}})}} & liest ob {\emph{Pin}} ein oder ausgeschaltet ist (0/1) \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.61351 cm} x{1.81949 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Analog I/O}} \tn % Row 0 \SetRowColor{LightBackground} int {\bf{analogRead(}}{\emph{analogPin{\bf{}})}} & lie{\ss}t Spannung auf {\emph{analogPin}} als Wert zwischen 0 und 1023 \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{analogReference(}}mode{\bf{)}} & legt Referenzspannung für {\emph{HIGH}} fest \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} DEFAULT, INTERNAL, EXTERNAL & \seqsplit{Spannungsreferenz-modi} \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{analogWrite(}}{\emph{Wert{\bf{}})}} & erzeugt PWM-Welle mit einem Wert zwischen 0 und 255 \tn % Row Count 10 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Interrupts}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{digitalPinToInterrupt(}}{\emph{Pin{\bf{}})}} & wandelt digitalen {\emph{Input-Pin}} in Interrupt-Pin um \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{LOW}}, {\bf{CHANGE}}, {\bf{RISING}}, {\bf{FALLING}} & Interrupt-Typen \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{attachInterrupt(}}{\emph{Interrupt, Function, Typ{\bf{}})}} & verbindet {\emph{Interrupt-Pin}} mit {\emph{Funktion}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} {\bf{detachInterrupt(}}{\emph{interrupt{\bf{}})}} & hebt Verbindung zwischen {\emph{Funktion}} und {\emph{Interrupt-Pin}} auf \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{interrupts()}} & aktiviert Interrupts \tn % Row Count 13 (+ 1) % Row 5 \SetRowColor{white} {\bf{noInterrupts()}} & deaktiviert Interrupts \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Fortgeschrittene I/O}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{tone(}}{\emph{Pin}}, {\emph{Frequenz{\bf{}})}} & {\emph{Frequenz}} in Hz wird auf {\emph{Pin}} ausgegeben \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{tone(}}{\emph{Pin}}, {\emph{Frequenz}}, {\emph{Dauer{\bf{}})}} & auf {\emph{Pin}} wird eine {\emph{Frequenz}} für {\emph{Dauer}} Millisekunden ausgegeben \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{noTone(}}{\emph{Pin{\bf{}})}} & Tonausgabe auf {\emph{Pin}} wird beendet \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} {\bf{pulseIn(}}{\emph{Pin}}, {\emph{Wert{\bf{}})}} & misst die Dauer die {\emph{Pin}} *Wert annimmt (HIGH/LOW) \tn % Row Count 12 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.51052 cm} x{1.92248 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Zeit}} \tn % Row 0 \SetRowColor{LightBackground} unsigned int {\bf{millis()}} & Millisekunden seit Programmstart. \textasciitilde{}50 Tage Overflow \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} unsigned int {\bf{micros()}} & Microsekunden seit Programmstart. \textasciitilde{}70 min bis Overflow \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{delay(}}{\emph{ms{\bf{}})}} & Pause für {\emph{ms}} Millisekunden \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} {\bf{delayMicroseconds(}}{\emph{us{\bf{}})}} & Pause für {\emph{us}} Microsekunden \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Mathematik}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{min(}}x, y{\bf{)}}, {\bf{max(}}x, y{\bf{)}}, {\bf{abs(}}x{\bf{)}} & Minimum, Maximum, absoluter Wert \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{pow(}}{\emph{Basis}}, {\emph{Exponent{\bf{}})}} & Basis\textasciicircum{}Exponent\textasciicircum{} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{sqrt(}}x{\bf{)}} & Wurzel(x) \tn % Row Count 6 (+ 1) % Row 3 \SetRowColor{white} {\bf{sin(}}x{\bf{)}}, {\bf{cos(}}y{\bf{)}}, {\bf{tan(}}z{\bf{)}} & Sinus, Cosinus, Tangens \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{map(}}{\emph{Wert{\bf{}},}} {\emph{lim1U{\bf{}},}} lim1O{\bf{{\emph{,}} }}lim2U{\bf{{\emph{,}} }}lim2O{\bf{*)}} & skaliert {\emph{Wert}} zwischen {\emph{lim1U}} und {\emph{lim1O}} zu Wert zwischen {\emph{lim2U}} und {\emph{lim2O}} \tn % Row Count 14 (+ 5) % Row 5 \SetRowColor{white} {\bf{constrain(}}{\emph{Wert}}, {\emph{limU}}, {\emph{limO{\bf{}})}} & beschr{\"a}nkt {\emph{Wert}} zwischen {\emph{unterem}} und {\emph{oberem Limit}} \tn % Row Count 17 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.51052 cm} x{1.92248 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Zufallszahlen}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{randomSeed(}}{\emph{Wert{\bf{}})}} & Ausgangswert für Zufallsgenerator \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{random(}}{\emph{max{\bf{}})}} & Zufallszahl zwischen 0 und {\emph{max}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{random(}}{\emph{min}}, {\emph{max{\bf{}})}} & Zufallszahl zwischen {\emph{min}} und {\emph{max}} \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.54485 cm} x{1.88815 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Serial}} \tn % Row 0 \SetRowColor{LightBackground} Serial.{\bf{begin(}}9600{\bf{)}}; & startet {\bf{Serial}}-verbindung mit Baudrate \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Serial.{\bf{println(}}{\emph{inhalt{\bf{}})}}; & sendet Zeile mit {\emph{Inhalt}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Serial.{\bf{print(}}{\emph{text{\bf{}})}}; & sendet {\emph{Text}} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Serial.{\bf{write(}}{\emph{daten{\bf{}})}}; & sendet {\emph{Daten}} als Bin{\"a}rcode \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Serial.{\bf{flush()}}; & wartet bis {\emph{Daten}} gesendet sind \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} Serial.{\bf{end()}}; & beendet Serial-Verindung \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.27021 cm} x{2.16279 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Servo}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{\#include \textless{}Servo.h\textgreater{}}} & fügt Servo-Library hinzu \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{attach(}}{\emph{pin{\bf{}})}} & fügt {\emph{Servopin}} hinzu \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{write(}}{\emph{Winkel{\bf{}})}} & stellt Servomotor auf {\emph{Winkel}}(0-180°) \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{read()}} & liest Winkel von Servomotor \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}