Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Libraries
#1
I am a newbie and learning.

When it comes to Arduino libraries for the KC868-A6 such as PCF8574.h, I struggle to find the correct one for the board. Can anyone tell me which library I should be loading? I just got the KC868 and just want to get a few things loaded and running as part of my self-training. I have been working with ESP32 for a few months. Any help would be greatly appreciated.
Reply
#2
you can use this pcf8574 library, just unzip and copy to your arduino library folder.

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 460)
Reply
#3
Bonjour à tous,
Merci pour cette bibliothèque en vue l'utilisation des deux PCF8574 placés sur la carte HC868-A6
Comme toujours, cette bibliothèque est complexe car éloignée de la documentation PCF8574. A suivre !
La carte HC868-A6 est très intéressante pour le ESP WROOM-32E et les interfaces.....
Au plaisir de vous lire !
Djoii
Reply
#4
(12-20-2022, 06:14 AM)admin Wrote: you can use this pcf8574 library, just unzip and copy to your arduino library folder.

Thank you very much. Is there a project or other source of esp32 sketches that I might use to get started with the KC868-A6? It would be most helpful as I hope to use several more of your boards to automate my home and garden center. I also reviewed the youtube video using the windows based software and wondering if that works with all your boards. I know the A6 is new and there may not yet be a lot of users publishing projects yet if you could provide a few links or suggest a few places where I can find some examples that would be very helpful. As a newbie the real challenge is knowing where to find projects that can serve as good training tools. 

Thanks for responding, your support make all the difference and hope to use more of your products once I become comfortable setting them up.
Reply
#5
if you want directly to use, don't want write some code, you can also download "Tasmota" firmware, you can see video tour in our YouTube channel and download file from our forum. that only need to config some GPIO pins then can use by web browser in mobile phone or PC.
Reply
#6
Bonjour à tous,
En utilisant platformIO et après beaucoup d'hésitations, la copie suivante fonctionne :
#include <Arduino.h>
#include <pcf8574.h>
PCF8574 pcf8574(0x24, 04, 15);

void setup() {
Serial.begin(115200);
pcf8574.pinMode (P0, OUTPUT);
pcf8574.pinMode (P1, OUTPUT);
pcf8574.pinMode (P2, OUTPUT);
pcf8574.pinMode (P3, OUTPUT);
pcf8574.pinMode (P4, OUTPUT);
pcf8574.pinMode (P5, OUTPUT);
pcf8574.digitalWrite(P0,HIGH);
pcf8574.digitalWrite(P1,HIGH);
pcf8574.digitalWrite(P2,HIGH);
pcf8574.digitalWrite(P3,HIGH);
pcf8574.digitalWrite(P4,HIGH);
pcf8574.digitalWrite(P5,HIGH);
Serial.print("Init8574 OK ? ");
if (pcf8574.begin())
{Serial.print(" c'est bon");}
else
{Serial.print(" c'est nul");}
Serial.printf(".");
}

void loop() {
delay(1000);
pcf8574.digitalWrite(P0,LOW);
delay(1000);
pcf8574.digitalWrite(P0,HIGH);
Serial.print(".");
}
Si je peux me permettre, platformIO est très agréable pour développer lorsqu'il est bien installé

Bonne fin d'année à tous
Djoii
Reply
#7
thanks shared your code.
Reply
#8
Bonjour à tous et meilleurs voeux pour l'année 2023
L'afficheur OLED fonctionne correctement avec l'exemple fourni : à développer !
Une simple question : référence de la pile 3V à installer pour la sauvegarde du DS1307M ?
Bonne journée
Djoii
Reply
#9
battery model is CR1220 here is photo.
   
Reply
#10
Bonsoir à tous
merci pour l'information pour la pile CR1220
Le programme pour l'horloge DS1307 en I2C ne fonctionne pas ? A suivre !
A bientôt
Djoii
Reply


Forum Jump:


Users browsing this thread: