Új hozzászólás Aktív témák

  • Ezt találtam itt:

    Since these io expander chips use i2c to communiate, you can power them from 5V while still connecting the i2c data lines to a 3.3V device like the pi. That's because the Pi has two i2c resistors that pull up SDA/SCL to 3.3V. Just make sure not to connect any resistors to SDA/SCL to 5V and you can power the chip from 5V (and have 5V input/output on the MCP chip). Its also fine of course to power the MCP chip from 3.3V but the 5V line on the Pi has more current capability so you might find its better to go that way.

    Ez valahogy szimpatikusabb, mint mindent a +3.3V -ról hajtani...

    Közben átírtam az előbbi oldalon talált példaprogikat, így most van egy példaprogim, amivel lehet tesztelni egy LED-t, illetve egy másik, amivel a lenyomott nyomógombok kiírathatók. Egyelőre az Adafruitos lib miatt ez csak pull módon történik.
    Úgyhogy már csak egy interrupt vezérelt driver kéne hozzá... (Mondjuk ehhez az interrupt lábat is be kéne kötni valahova...)
    Azután nekivágok a VFD/LCD-nek is...

    Megj: kipróbáltam ezt az előbbi "használd nyugodtan az +5V-ot az MCP táplálására" dolgot, és műxik...

Új hozzászólás Aktív témák