Search found 3821 matches
- Wed Jun 08, 2022 6:57 pm
- Forum: Programs, Libraries and Tools
- Topic: PC python script to run mpremote commands
- Replies: 6
- Views: 28310
Re: PC python script to run mpremote commands
You could also just populate sys.argv and then call main.main()
- Wed May 25, 2022 12:38 pm
- Forum: Other Boards
- Topic: Micropython on ARM Linux?
- Replies: 3
- Views: 2418
Re: Micropython on ARM Linux?
The Unix port should work on all variants of Unix, including ARM Linux.
- Thu May 12, 2022 9:53 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: help with E32 program (simple)
- Replies: 25
- Views: 8345
Re: help with E32 program (simple)
I've found, over the years, that the best way to processing serial data is one character at a time. I can offer a concrete example here: https://github.com/dhylands/bioloid3/blob/master/bioloid/packet.py#L197 It processes characters coming from a serial line and they're formatted for talking to biol...
- Sat Apr 30, 2022 4:44 am
- Forum: Drivers for External Components
- Topic: No I2C feedback: How to debug?
- Replies: 18
- Views: 44673
Re: No I2C feedback: How to debug?
The shifted by one bit is common issue that many people misunderstand. The I2C address is a 7-bit address and is stored up the upper 7-bits of the "address byte". The lower bit is a read/write bit. This is described in the SMBUS protocol: http://smbus.org/specs/smbus20.pdf If you look on page 28 you...
- Mon Apr 25, 2022 10:10 pm
- Forum: Programs, Libraries and Tools
- Topic: What the heck does I2C constructor asterisk mean?
- Replies: 4
- Views: 2686
Re: What the heck does I2C constructor asterisk mean?
It's a python thing and not specific to MicroPython. The formal definition can be found here: https://docs.python.org/3/reference/compound_stmts.html#function-definitions This is from the paragraph that starts "Function call semantics ..." Parameters after “*” or “*identifier” are keyword-only param...
- Mon Apr 25, 2022 5:46 pm
- Forum: Programs, Libraries and Tools
- Topic: mpremote configuration
- Replies: 2
- Views: 1994
Re: mpremote configuration
If you want something in the meantime, I wrote a little python script called find_port.py, which you can find here: https://github.com/dhylands/dotfiles/blob/master/bin/find_port.py If you wrap your call to mpremote up in a bash script you can use find_port.py to find your serial port. Use something...
- Mon Apr 25, 2022 5:39 pm
- Forum: Development of MicroPython
- Topic: STM32F405 Default Memory Mapping
- Replies: 1
- Views: 1665
Re: STM32F405 Default Memory Mapping
The 64K of CCM memory is used when micropython needs to read/write from the flash file system. Your stack will be ok until micropython needs to use all 64K (which will happen when it needs to update a 64K flash block) and then your program will die in a somewhat unpredictable manner. This is where t...
- Mon Apr 25, 2022 5:27 pm
- Forum: General Discussion and Questions
- Topic: deepcopy
- Replies: 1
- Views: 1245
Re: deepcopy
You can find it implemented in micropython-lib:
https://github.com/micropython/micropyt ... py.py#L163
https://github.com/micropython/micropyt ... py.py#L163
- Mon Apr 25, 2022 5:22 pm
- Forum: General Discussion and Questions
- Topic: rshell commands
- Replies: 3
- Views: 1652
Re: rshell commands
So try this instead: rshell -b 115200 -p /dev/tty.SLAB_USBtoUART 'repl ~ print("hi") ~' The single quotes will cause the repl ~ print("hi") ~ to be passed as a single argument and will cause expansion (or variables or ~) to be suppressed. If you want to try and understand what bash is doing, I wrote...
- Sat Apr 23, 2022 9:04 pm
- Forum: General Discussion and Questions
- Topic: Chessboard robot
- Replies: 10
- Views: 4103
Re: Chessboard robot
I'd probably recommend using a camera to identify the squares and where you are in relation to them.
But that would require learning a bunch of image processing stuff and using something like OpenMV or a Raspberry Pi and OpenCV.
But that would require learning a bunch of image processing stuff and using something like OpenMV or a Raspberry Pi and OpenCV.