GithubHelp home page GithubHelp logo

Comments (1)

sfe-SparkFro avatar sfe-SparkFro commented on May 30, 2024

Hi there! I just tested this on a Pico W, and it appears to work with the hardware serial example (haven't tested software serial, but hardware is arguably better anyways). Just need to make sure you specify the correct UART bus and pins for your project:

Take a look at the Function Select table of the RP2040 datasheet (Table 278, page 237 as of writing). The F2 column specifies which pins and UART bus can be used with each pin (only some pins support TX and RX). Assuming you're using Earle Philhower's arduino-pico core, UART0 and UART1 correspond to Serial1 and Serial2 respectively.

So to get it working, first figure out which pins you want to use. Then open the hardware serial example (under the Advanced folder) and replace all instances of Serial5 with Serial1 or Serial2 (depending on which pins you're using, I'm just going to call it SerialN for here on). Then before SerialN.begin() (line 118), add SerialN.setTX() and SerialN.setRX(), and pass in the pin numbers you want to use.

For example, I used pins 20 and 21 for my TX and RX respectively, which support UART1, or Serial2. So I replaced all instances of Serial5 with Serial2, and added the following

...

Serial2.setTX(20);
Serial2.setRX(21);

Serial2.begin(baudRate);

...

I hope this helps! Going to close this since it doesn't appear to be an issue with this library. Please feel free to reply if you're still having trouble, or reopen if you believe there really is a problem with this library. Thank you!

from sparkfun_simultaneous_rfid_tag_reader_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.