pio/pio_spi.py: methods of PIOSPI are missing `self`
See original GitHub issueHi!
It seems methods here are missing self
:
https://github.com/raspberrypi/pico-micropython-examples/blob/master/pio/pio_spi.py
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
TypeError: Missing 1 required positional argument: 'self'
TypeError: test() missing 1 required positional argument: 'self'. When an instance method had self , then I called it directly by class name...
Read more >Python missing 1 required positional argument: 'self' Solution
When you call a class method without first instantiating an object of that class, you get an error. This is because “self” has...
Read more >TypeError: missing 1 required positional argument: 'self'
The Python TypeError: missing 1 required positional argument: 'self' occurs when we call a method on the class instead of on an instance...
Read more >Missing argument to super() - QuantifiedCode
Missing argument to super() ¶. super() enables you to access the methods and members of a parent class without referring to the parent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great link, this is where I took “inspiration” for my own version of SPI that just does sending, without MISO or CS pins (because I didn’t need them for my application). This saved me two pins 😃.
Oh. You’re quite right. I’ll copy-pasta myself over there, then. Thanks for the heads up, Alasdair!
Interestingly, MicroPython’s RP2040
examples/
subdirectory entirely omits this example and all reference to SPI. There’s a reason for that. Welp, alrighty then.machine.SPI
it is.