[フレーム]
Keil Studio Cloud

Important update: Arm Announces End of Life Timeline for Mbed. This site will be archived in July 2026. Read the full announcement.

PCF8574 I2C IO Expander

Table of Contents

  1. Hello World!
  2. Library
  3. Reference

This is an I2C 8 bit IO expander, which you can add up to 8 of to a single I2C bus

Hello World!

main.cpp

#include "mbed.h"
#include "PCF8574.h"
PCF8574 io(p9,p10,0x40);
int main(){
 while(1) {
 io.write(0x0);
 wait(0.2);
 io.write(0xF);
 wait(0.2);
 }
 }

PCF8574 Hello World! circuit

Library

The mbed library for the PCF8574 IO Expander

Reference


All wikipages
Recent changes
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.

Access Warning

You do not have the correct permissions to perform this operation.

×

AltStyle によって変換されたページ (->オリジナル) /