トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

PRG-Firmata-XIAO

Seeeduino XIAO (tips-SeeeduinoXIAO )を firmata で使う

(だめかな〜〜)動いたけれど。。(なんらしか、初期化の手順が必要)

Main

Tips

pyfirmata

*https://pypi.org/project/pyFirmata/

PyMata

http://nopnop2002.webcrow.jp/PyMata/PyMata-1.html

https://mryslab.github.io/pymata4/pin_modes/

パッチ(arduino libraly)

~/Arduino/libraries/Firmata 
もしくは
~/arduino_src/arduino-1.8.13/libraries/Firmata 

Firmata> diff ./Boards.h.ooo ./Boards.h
853a854,872
> // Seeduino XIAO
> #elif defined(SEEED_XIAO_M0)
> #define TOTAL_ANALOG_PINS 11
> #define TOTAL_PINS 17 // 11 digital / analog + 1 DAC output + 2 i2c + 3 spi
> #define VERSION_BLINK_PIN LED_BUILTIN
> #define PIN_SERIAL1_RX 7
> #define PIN_SERIAL1_TX 6
> #define IS_PIN_DIGITAL(p) ((p) >= 0 && (p) <= 10)
> #define IS_PIN_ANALOG(p) ((p) >= 0 && (p) <= 10)
> #define IS_PIN_PWM(p) ((p) >= 1 && (p) <= 10)
> #define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) < MAX_SERVOS) // deprecated since v2.4
> #define IS_PIN_I2C(p) ((p) == 4 || (p) == 5) // SDA = 4, SCL = 5
> #define IS_PIN_SPI(p) ((p) == 4 || (p) == 10 || (p) == 9 || (p) == 8) // SS = A4
> #define IS_PIN_SERIAL(p) ((p) == 6 || (p) == 7)
> #define PIN_TO_DIGITAL(p) (p)
> #define PIN_TO_ANALOG(p) (p)
> #define PIN_TO_PWM(p) PIN_TO_DIGITAL(p)
> #define PIN_TO_SERVO(p) (p) // deprecated since v2.4
>