You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/micropython/01.basics/08.reference/reference.md
+1-109Lines changed: 1 addition & 109 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: MicroPython Reference
3
-
description: A single document reference of the MicroPython API
3
+
description: A single document reference of the MicroPython API.
4
4
authors: Karl Söderby
5
5
micropython_type: basics
6
6
---
@@ -19,114 +19,6 @@ The entries are named exactly the same as in the language reference, with the Mi
19
19
20
20
***Note that several entries in the original [Language Reference](https://www.arduino.cc/reference/en/) are directly taken from the C++ reference. In the same fashion, many functions located in this reference are taken from the Python reference, and are not MicroPython specific.***
21
21
22
-
## Index
23
-
24
-
The entire reference is located inside this document, and the index below helps navigate to the right section.
25
-
26
-
-[Index](#index)
27
-
-[Digital I/O](#digital-io)
28
-
-[pinMode()](#pinmode)
29
-
-[digitalRead()](#digitalread)
30
-
-[digitalWrite()](#digitalwrite)
31
-
-[Analog I/O](#analog-io)
32
-
-[Configure Input (ADC)](#configure-input-adc)
33
-
-[Configure Output (PWM)](#configure-output-pwm)
34
-
-[analogRead()](#analogread)
35
-
-[analogWrite()](#analogwrite)
36
-
-[analogWrite() (STM32)](#analogwrite-stm32)
37
-
-[Time](#time)
38
-
-[delay()](#delay)
39
-
-[millis()](#millis)
40
-
-[Bits and Bytes](#bits-and-bytes)
41
-
-[bitRead()](#bitread)
42
-
-[bitSet()](#bitset)
43
-
-[highByte()](#highbyte)
44
-
-[lowByte()](#lowbyte)
45
-
-[Advanced I/O](#advanced-io)
46
-
-[noTone()](#notone)
47
-
-[pulseIn()](#pulsein)
48
-
-[shiftIn()](#shiftin)
49
-
-[shiftOut()](#shiftout)
50
-
-[tone()](#tone)
51
-
-[Math](#math)
52
-
-[abs()](#abs)
53
-
-[constrain()](#constrain)
54
-
-[map()](#map)
55
-
-[max()](#max)
56
-
-[min()](#min)
57
-
-[pow()](#pow)
58
-
-[sq()](#sq)
59
-
-[sqrt()](#sqrt)
60
-
-[Trigonometry](#trigonometry)
61
-
-[cos()](#cos)
62
-
-[sin()](#sin)
63
-
-[tan()](#tan)
64
-
-[Characters](#characters)
65
-
-[isAlpha()](#isalpha)
66
-
-[isAlphaNumeric()](#isalphanumeric)
67
-
-[isAscii()](#isascii)
68
-
-[isControl()](#iscontrol)
69
-
-[isDigit()](#isdigit)
70
-
-[isGraph()](#isgraph)
71
-
-[isLowerCase()](#islowercase)
72
-
-[isPrintable()](#isprintable)
73
-
-[isPunct()](#ispunct)
74
-
-[isSpace()](#isspace)
75
-
-[isUpperCase()](#isuppercase)
76
-
-[Random Numbers](#random-numbers)
77
-
-[random()](#random)
78
-
-[randomSeed()](#randomseed)
79
-
-[External Interrupts](#external-interrupts)
80
-
-[attachInterrupt()](#attachinterrupt)
81
-
-[detachInterrupt()](#detachinterrupt)
82
-
-[Serial (USB)](#serial-usb)
83
-
-[Serial.print()](#serialprint)
84
-
-[Serial1 (UART)](#serial1-uart)
85
-
-[Serial1.begin()](#serial1begin)
86
-
-[Serial1.available()](#serial1available)
87
-
-[Serial1.read()](#serial1read)
88
-
-[Serial1.write()](#serial1write)
89
-
-[SPI](#spi)
90
-
-[SPI.begin()](#spibegin)
91
-
-[SPI.read()](#spiread)
92
-
-[SPI.write()](#spiwrite)
93
-
-[SPI.transfer()](#spitransfer)
94
-
-[Bit Size](#bit-size)
95
-
-[Wire / I2C](#wire--i2c)
96
-
-[Wire.begin()](#wirebegin)
97
-
-[Wire.available()](#wireavailable)
98
-
-[Wire.read()](#wireread)
99
-
-[Wire.write()](#wirewrite)
100
-
-[Wire.setClock()](#wiresetclock)
101
-
-[SoftI2C](#softi2c)
102
-
-[USB HID](#usb-hid)
103
-
-[Data Types](#data-types)
104
-
-[size\_t](#size_t)
105
-
-[void](#void)
106
-
-[Conversion](#conversion)
107
-
-[byte()](#byte)
108
-
-[char()](#char)
109
-
-[float()](#float)
110
-
-[int()](#int)
111
-
-[Local / Global Variables](#local--global-variables)
112
-
-[Sketch](#sketch)
113
-
-[loop()](#loop)
114
-
-[setup()](#setup)
115
-
-[Control Structure](#control-structure)
116
-
-[if](#if)
117
-
-[else](#else)
118
-
-[for](#for)
119
-
-[while](#while)
120
-
-[break](#break)
121
-
-[continue](#continue)
122
-
-[return](#return)
123
-
-[Operators](#operators)
124
-
-[Arithmetic Operators](#arithmetic-operators)
125
-
-[Comparison Operators](#comparison-operators)
126
-
-[Boolean Operators](#boolean-operators)
127
-
-[Bitwise Operators](#bitwise-operators)
128
-
-[Compound Operators](#compound-operators)
129
-
130
22
## Digital I/O
131
23
132
24
To access digital GPIOs using MicroPython, we use the `Pin` module. To define a pin, we use `Pin(pin,type)`.
0 commit comments