Skip to content
Discussion options

You must be logged in to vote

@ecburns33 Fear not! 😄 There are PyCubed examples for this

  • So in addition to the SPI bus, you're saying you need two more general purpose input/ouput (aka GPIO) pins called RESET and DRDY. Can do!
  • Don't try and use busio for these pins, busio is for serial bus communication (like SPI or I2C). We just need general control of the digital pin. CircuitPython calls this digitalio.
    • See the pycubed digitalio example here for a taste of how this is done.

Now let's break this down.

  1. Here's what the arduino code you linked says for the pins assignments and configuration.

    arduino code

    int SCLKpin = 8;     // magnetometer pin 1
    int MISOpin = 9;     // magnetometer pin 2
    int MOSIpin = 10;    //

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

maholli
Sep 24, 2021
Maintainer Author

You must be logged in to vote
3 replies
@ecburns33
Comment options

@maholli
Comment options

maholli Sep 24, 2021
Maintainer Author

@ecburns33
Comment options

Answer selected by maholli
Comment options

maholli
Sep 27, 2021
Maintainer Author

You must be logged in to vote
3 replies
@ecburns33
Comment options

@maholli
Comment options

maholli Oct 1, 2021
Maintainer Author

@ecburns33
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants