Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
c8284c9b
Commit
c8284c9b
authored
Jun 18, 2021
by
robert-hh
Committed by
Damien George
Jun 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mimxrt/main: Extend the information returned by help().
parent
4eabff53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
ports/mimxrt/main.c
ports/mimxrt/main.c
+17
-2
No files found.
ports/mimxrt/main.c
View file @
c8284c9b
...
...
@@ -131,8 +131,23 @@ const char mimxrt_help_text[] =
" machine.Pin(pin, m, [p]) -- get a pin and configure it for IO mode m, pull mode p
\n
"
" methods: init(..), value([v]), high(), low())
\n
"
"
\n
"
"Pin IO modes are: Pin.IN, Pin.OUT, Pin.OPEN_DRAIN
\n
"
"Pin pull modes are: Pin.PULL_UP, Pin.PULL_UP_47K, Pin.PULL_UP_22K, Pin.PULL_DOWN, Pin.PULL_HOLD
\n
"
" Pins are numbered board specific, either 0-n, or 'D0'-'Dn', or 'A0' - 'An',
\n
"
" according to the boards's pinout sheet.
\n
"
" Pin IO modes are: Pin.IN, Pin.OUT, Pin.OPEN_DRAIN
\n
"
" Pin pull modes are: Pin.PULL_UP, Pin.PULL_UP_47K, Pin.PULL_UP_22K, Pin.PULL_DOWN, Pin.PULL_HOLD
\n
"
" machine.ADC(pin) -- make an analog object from a pin
\n
"
" methods: read_u16()
\n
"
" machine.UART(id, baudrate=115200) -- create an UART object (id=1 - 8)
\n
"
" methods: init(), write(buf), any()
\n
"
" buf=read(n), readinto(buf), buf=readline()
\n
"
" The RX and TX pins are fixed and board-specific.
\n
"
" machine.SoftI2C() -- create an Soft I2C object
\n
"
" methods: readfrom(addr, buf, stop=True), writeto(addr, buf, stop=True)
\n
"
" readfrom_mem(addr, memaddr, arg), writeto_mem(addr, memaddr, arg)
\n
"
" machine.SoftSPI(baudrate=1000000) -- create an SPI object ()
\n
"
" methods: read(nbytes, write=0x00), write(buf), write_readinto(wr_buf, rd_buf)
\n
"
" machine.Timer(id, freq, callback) -- create a hardware timer object (id=0,1,2)
\n
"
" eg: machine.Timer(freq=1, callback=lambda t:print(t))
\n
"
"
\n
"
"Useful control commands:
\n
"
" CTRL-C -- interrupt a running program
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment