OpenDevice / opendevice-lib-arduino

OpenDevice lib for Arduino / ESP8266 / Etc..
http://opendevice.net
10 stars 6 forks source link

Allow use IO Expanders - 74HC595 #3

Open ricardojlrufino opened 8 years ago

ricardojlrufino commented 8 years ago

use a controller to manipulate the pins

595Controller

Add method: digitalWrite(byte externalPin, byte value)

LogicalDevice

bool Device::setValue(unsigned long value, bool sync){
  controller.digitalWrite(this.pin, value)
}

Sketch image