Comments (6)
Hi AlbertEmil,
I think you are not using my library, I check and I don't manage the status with wire.begin (It's a void function), I test It and the status work correctly with Arduino, esp8266 and esp32.
Please check and give me a feedback.
Thanks Renzo
from pcf8574_library.
Hi Renzo,
I double checked the library I am using and it is definitely yours. As initially written, I always get a "KO" status upon initialization (when using one of your examples). Could you elaborate on the pcf8574.begin()
function? Where is this boolean getting its value from? I just started with C and did not find any useful hint why I am always getting a "KO" instead of a "OK". However, the Port Expander is working just fine, even with a "KO" status.
Greetings, Al
from pcf8574_library.
Mmm.. It's strange, can you give me more informations, the microcontroller, and a piece of your code.
Thanks Renzo
from pcf8574_library.
I had the same issue today and from looking at the code of begin() my suspicion is that if you don't set any pinMode before calling begin() it will fail.
from pcf8574_library.
Hi woyzeck,
It's true I return a KO if pinMode isn't set.
Thanks for your support.
Bye Renzo
from pcf8574_library.
I have the same problem what do I have to do? it is unclear what solves the problem. pinMode is a function that applies to some specific pin. For what pin to call the pinMode function?
from pcf8574_library.
Related Issues (20)
- PCF8574 with HC-SR04 UltraSonic Sensor HOT 5
- Low memory Read All not working HOT 3
- Wont compile at all esp32 HOT 1
- if (pcf8574.begin()) is always ko !!! HOT 2
- digitalWrite(PIN, LOW) changes all pins to LOW HOT 1
- Error when compiling. HOT 2
- Lockup on PCF8574::begin() on ESP32 due to unpaired beginTransmission() call HOT 2
- Got digitalReadAll to work, but digitalRead is not? HOT 4
- Do library examples work with ESP32 2.02 ?? HOT 8
- class PCF8574' has no member named 'pinMode' HOT 3
- Won't compile with ESP8266 DevKit 1 HOT 2
- Both digitalReadAll and digitalRead return same value for all INPUT or INPUT_PULLUP pins HOT 6
- aduino web editor HOT 2
- Raspberry Pi Pico W with multiple PCF8574 HOT 1
- problem with interrupt HOT 1
- OUTPUT SET TO HIGH DURING BEGIN HOT 3
- Compilation error: expected initializer before 'updateEncoder' HOT 3
- Couldn't initialize HOT 1
- Changing Output to Input mid program HOT 1
- Unable to call in ESP32 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcf8574_library.