What am i missing here?
My functions asks for 3 arguments. But its suppose to be only 2?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: My functions asks for 3 arguments. But its suppose to be only 2?
See the docs. The spi.write_readinto method takes two args, you provided only one.
Note that self counts as one arg, which is why the error message refers to 3 args. It is seeing self and ba so is getting 2 args instead of the required 3.
Note that self counts as one arg, which is why the error message refers to 3 args. It is seeing self and ba so is getting 2 args instead of the required 3.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: My functions asks for 3 arguments. But its suppose to be only 2?
Got it! Thanks!pythoncoder wrote: ↑Fri Oct 16, 2020 1:19 pmSee the docs. The spi.write_readinto method takes two args, you provided only one.
Note that self counts as one arg, which is why the error message refers to 3 args. It is seeing self and ba so is getting 2 args instead of the required 3.