#define IS_PIN_I2C(p) ((p) = PIN_WIRE_SDA || (p) = PIN_WIRE_SCL) See: variants/RASPBERRY_PI_PICO/pins_arduino.h v3.1.1 of mbed_rp2040 defines WIRE_HOWMANY to 1 and uses the default GPs 4 & 5. v2.3.1 of mbed_rp2040 defines WIRE_HOWMANY to 1 and uses the non-default GPs 6 & 7. From the data sheet I2C-0 defaults to GP 4 (SDA) & 5 (SCL) (physical pins 6 & 7). #define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) & (p) != LED_BUILTIN) #define IS_PIN_PWM(p) digitalPinHasPWM(p) #elif defined(TARGET_RP2040) || defined(TARGET_RASPBERRY_PI_PICO) The sockets port defaults to 3030 but can be overridden via the property. Otherwise, the adapter will look for the property and if set use sockets communication. The Firmata adapter first looks for the property - if this set (either via command line or environment variable) the serial communication protocol is used.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |