![]() ![]() So i thought and tryed instead of VCC 3.3v to use the ground pin and that worked i was able to move the page up and down in the arduino forum. however when i put the other side of the pins to vcc 3.3v nothing worked. The pinout i did for 2 and 3 page up and page down. ![]() The other problem is when i did a keyboard setup the problem was in the pinout and wiring. So when i did one pin to ground and one pin to the 3.3v pin i was able to make it work. When i did the digital read serial I put one pin to 2 and the other to ground and it wasn't working. It wasn't the coding but in fact two problems the wiring and pinout.įirst The pinout i was thinking of something totally wrong when it comes to pinout so Pert you pointing me in the right direction. extern PinName digitalPinToPinName(pin_size_t P).I can see that the built-in LED is defined as being on Arduino pin 25 in the "Arduino Mbed OS RP2040 Boards" platform, which makes me think that is how it works: arduino/ArduinoCore-mbed/blob/2.1.0/variants/RASPBERRY_PI_PICO/pins_arduino.h#L23 So if you have the button connected to GP2, do this in your sketch: digitalRead(2) I would recommend starting with trying to use the GPIO numbers as Arduino pin numbers. ![]() Unfortunately, I don't own a RPi Pico, so I don't have any experience with its pin mapping. This is why I suggested you to start with a very simple sketch for reading from a pin before getting into the complexity of keyboard emulation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |