question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pio/pio_spi.py: methods of PIOSPI are missing `self`

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kopchikcommented, Feb 24, 2021

There’s a more complete example of SPI-implemented-with-PIO at https://github.com/raspberrypi/pico-examples/blob/master/pio/spi/spi.pio

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 😃.

0reactions
leyceccommented, Dec 9, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found